Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
275
Copy values from Column2 to Column1
posted

I have 2 columns in a webgrid.

But I only want the user to edit column #2, Column#1 should receive a value from Column#2 as soon as I update the cell in Column#2

Column #2 has a webcombo with 4 columns inside: id1, id2, text1, text2

Column#2 has DataValueField=id2    DataTextField=text2

I want Cell#1 to get the value  id1   - NOT id2  -  from Cell#2

How can I do this ?

  • 4555
    posted

    Hi,

    You can handle the  AfterCellUpdateHandler on the client side and get a reference to the cell of the second column value using the igtbl_getCellById(cellId).getValue() method. Get a reference to the first column and set the value of the cell.

    Magued