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
468
CheckBox validation in UltraWebGrid
posted

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.

 

 

Parents
No Data
Reply
  • 636
    posted

    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');

Children