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

Prevent Disabled Row (GridDataItem) from Client Selection

1 Answer 17 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Fred
Top achievements
Rank 1
Fred asked on 18 May 2010, 05:26 PM
I have code that loops through the grid's items and disables certain ones.
However, I also have ClientSettings-Selecting-AllowRowSelect set to true, so that I can use a Select All Header.

Problem is that when you click on a disabled row (item) it also selects. There a way to prevent this? 


1 Answer, 1 is accepted

Sort by
0
Accepted
Tsvetoslav
Telerik team
answered on 19 May 2010, 03:04 PM
Hello Fred,

Attach a client event handler to the OnRowSelecting event of the grid and cancel it if the row being selected does not meet your criteria for selection, i.e. is disabled.

Greetings,
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
Fred
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or