This is a migrated thread and some comments may be shown as answers.

RadGrid With GridClientSelectColumn

3 Answers 108 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sanoj
Top achievements
Rank 1
Sanoj asked on 20 Nov 2009, 03:59 PM
I have a RadGrid with a GridClientSelectColumn to allow the user to select several rows.
Unfortunately when the user clicks on a row(but not on the selectcolumn) all the selected rows are deselected and the row which is clicked on is selected,
How can I prevent this?(eg. only the GridClientSelectColumn should react to clicks the rest of the row should ignore them).

The second grid on this( http://demos.telerik.com/aspnet-ajax/grid/examples/client/selecting/defaultcs.aspx ) example page has the same "error"

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 23 Nov 2009, 05:25 AM
Hello Sanoj,

Check out the following code library submission which demonstrates on how to select grid rows only when the GridClientSelectColumn checkbox is clicked by using the grid's OnRowSelecting and OnRowDeselecting client events.
ClientSideSelectColumn - Disallow other selection

Hope this helps..
Princy.

0
Sanoj
Top achievements
Rank 1
answered on 26 Nov 2009, 01:53 PM
This causes problems when multiple selecting on Gecko browsers(Ff thinks no row is selected even though several are)
So it is not a a solution.
To be more precise:
If you put grid.SelectedItems.Count in the code-behind file,
the answer will always be zero in Firefox, no matter how many rows are actually selected.(other browsers work fine, though).
0
Basel Nimer
Top achievements
Rank 2
answered on 02 May 2010, 12:25 PM
did you manage to fix this?

Tags
Grid
Asked by
Sanoj
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Sanoj
Top achievements
Rank 1
Basel Nimer
Top achievements
Rank 2
Share this question
or