Hello,
we are using UltraWebGrid for our item selection. If we have in our grid some rows (items) and after I select some rows I would like to deselect them, the best way for user to do it would be click to the webgrid where there are no rows. Is there any easy way how to enable this or script this?
Please see the attached picture, so if I click anywhere where are for example the red circles, it would deselect any previously selected rows.
Thank you
Hi JakubYksvoloh,
It has been some time since your post, however in case you still need assistance I would be glad to help.
The selected rows and cells in UltraWebGrid can be deselected using:
igtbl_clearSelectionAll("UltraWebGrid1")
For your requirement a possible approach may be to subscribe an onclick event to the grid's main div, which can be accessed using:
igtbl_getGridById("UltraWebGrid1").DivElement
Please feel free to contact me if you have any questions.
Hi Where to call this? I am not getting
I got this whats happening in my case grid which is in div if I put this code for div then row get selected and again deselect i want the row should be deselected after clicking on outside the gridview.
Means clicking on anywhere on page.