using 2008 vol2. Have two unbound UltraWebGrid Columns of type checkbox. need to validate each row, so that only one checkbox is checked per row. added validation code to set checked property in the following client side event handler...
UltraWebGrid1_CellClickHandler(gridName, cellId, button)
this doesn't fire if I click on the "checkbox", fires only when clicked on the "cell". UltraWebGrid column does not have an onclick event. any input on this will be helpful. thanks in advance.
Guess if that is the case you can try adding the event to the checkbox in the Ultrawebgrid_InitializeRow() function on server side which will be called while binding the data to the Ultrawebgrid.
In the Intialize Row server side function you can get the Row object and then can get the cell object. After getting cell object you can try using cellobject.FindControl('checkboxname') to get the check box control.
After getting checkbox control you can do something like
checkboxcontrol.Attributes.Add('onchange','CALL_SOME_Javascript_Function');
checkboxcontrol.Attributes.Add('onclick','CALL_SOME_Javascript_Function');
thanks for ur quick reply. I solved my problem. figured AfterCellUpdateHandler fires when checked box is clicked on the cell.
thanks again.
Hi Vanitha,
I have the same problem as you had. can you please help me how to do client side validation for the checkbox. I want to have only one checkbox selected at a time for each row. I have problem with the afterupdatecellhandler event, it gets fired if i try to change un select the other checkbox.
Thanks,
Jay