Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Datagrid help! need client side method!

Datagrid help! need client side method!

Scheduled Pinned Locked Moved C#
comhelp
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dgap
    wrote on last edited by
    #1

    Hi All, I have a custom datagrid with two checkbox controls in it. When checkboxA is checked then if checkboxB is checked, it is unchecked and vice versa. (not like a radio button since if checkboxA is unchecked then nothing happens to checkboxB). But I would like to implement this in client side...any help would be GREATLY appreciated! schoudhr@hotmail.com

    C U 2 Replies Last reply
    0
    • D dgap

      Hi All, I have a custom datagrid with two checkbox controls in it. When checkboxA is checked then if checkboxB is checked, it is unchecked and vice versa. (not like a radio button since if checkboxA is unchecked then nothing happens to checkboxB). But I would like to implement this in client side...any help would be GREATLY appreciated! schoudhr@hotmail.com

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Then you need the variable names in the html, and to write some javascript. Christian Graus - Microsoft MVP - C++

      D 1 Reply Last reply
      0
      • D dgap

        Hi All, I have a custom datagrid with two checkbox controls in it. When checkboxA is checked then if checkboxB is checked, it is unchecked and vice versa. (not like a radio button since if checkboxA is unchecked then nothing happens to checkboxB). But I would like to implement this in client side...any help would be GREATLY appreciated! schoudhr@hotmail.com

        U Offline
        U Offline
        User 1045581
        wrote on last edited by
        #3

        Hi, for that, you have to use javascript. First you can search a control with getElementID from javascript and then you can enable and disabled at client side. All the best Anil Joshi

        D 1 Reply Last reply
        0
        • C Christian Graus

          Then you need the variable names in the html, and to write some javascript. Christian Graus - Microsoft MVP - C++

          D Offline
          D Offline
          dgap
          wrote on last edited by
          #4

          yes, i know that the question is how

          1 Reply Last reply
          0
          • U User 1045581

            Hi, for that, you have to use javascript. First you can search a control with getElementID from javascript and then you can enable and disabled at client side. All the best Anil Joshi

            D Offline
            D Offline
            dgap
            wrote on last edited by
            #5

            I know how to do that already... its a pretty generic process the question is mainly how to access an elementID from a serverside datagrid

            C 1 Reply Last reply
            0
            • D dgap

              I know how to do that already... its a pretty generic process the question is mainly how to access an elementID from a serverside datagrid

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              dgap wrote: the question is mainly how to access an elementID from a serverside datagrid Like I said, look at the resultant HTML. You can catch events like onitemdatabound to set the IDs if they aren't being set for you as you would like. Christian Graus - Microsoft MVP - C++

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups