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

[Solved] MultiSelect click deselects all rows

3 Answers 156 Views
Grid
This is a migrated thread and some comments may be shown as answers.
skysailor
Top achievements
Rank 1
skysailor asked on 21 Apr 2008, 05:46 AM
I am using the AllowMultiRowSelection option to allow multiple selection of rows. Like the bottom table in the demo:-
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/Client/Selecting/DefaultCS.aspx

If you have single row selection then when you click on a row it will deselect the last selected row. Which is fine.

But with multiple selection I would expect to be able to click on each row in turn at get it added to my selection. But it you click on another row it deselects all previously selected rows. I think my clients will find this behavior very annoying. I know you can Ctrl click to select more than one row. But that is not obvious to an end user.

When you have a GridClientSelectColumn then you can click on the ticks to select and unselect rows. This works as expected. Clicking on a single tick box adds that row to the select without deselecting the other rows. I wish a row click did the same thing.

3 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 21 Apr 2008, 07:40 AM
Hello skysailor,

Indeed, this is the default behavior of RadGrid and its row selection. A possible option to change that however, it to handle the OnRowSelecting/Deselecting client events and cancel those conditionally. Something similar is demonstrated in this Code-Library entry.

Regards,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
skysailor
Top achievements
Rank 1
answered on 22 Apr 2008, 11:24 PM
Thankyou for the reply and explanation.
If you have a multi-select list without checkboxes then it would make sense to work like that. That is how most lists in a windows application work.
But once you add a selection checkbox column I would expect clicking on the checkbox to work the same as clicking on the row.
It would be nice at least to have the choice.
0
Konstantin Petkov
Telerik team
answered on 23 Apr 2008, 10:14 AM
Hello skysailor,

GridClientSelectColumn behaves exactly as the CheckBoxList in ASP.NET -- you can keep checked as many check boxes at the same time as necessary.

Since the column check boxes and row selection depend on each other, you can always customize the default behavior with the help of client-events for selection as mentioned in my previous post.

All the best,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
skysailor
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
skysailor
Top achievements
Rank 1
Share this question
or