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

Disable Current Row Deselect

1 Answer 81 Views
Grid
This is a migrated thread and some comments may be shown as answers.
chris
Top achievements
Rank 1
chris asked on 06 Apr 2010, 09:40 AM
Hi

Before I make a workaround is there any way(via properties) that I can disable the user deselecting the current active row?
I only want a row to deselect if they choose another row. 

If not, I am going to disable the row deselect via onRowDeselecting using set_cancel, and deselect a row by via onRowSelecting of another row(using a flag of some kind). 

Does this seem like a viable solution?

Chris

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 09 Apr 2010, 06:14 AM
Hi chris,

There is no such property that can automatically achieve this scenario. The approach you have chosen is the correct one. If you need more directions on how exactly you should implement it, could you give more details on you requirements? I suppose you have mutli row selection switched one along with a GridClientSelectColumn - in this case, if you have more than one row selected, what is supposed to happen when you try to deselect one of the selected rows?

Best wishes,
Tsvetoslav
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
chris
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or