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

Prevent Selecting when Expand/Collapse

1 Answer 21 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jugoslav
Top achievements
Rank 1
Jugoslav asked on 22 Jan 2017, 11:15 AM

I have allowed the Row Selection for the RadGrid 

<Selecting AllowRowSelect="true" />

and it works fine except that I don't want to select the row if the expand/collapse column is clicked. 

Meaning I want to only see the details table of the certain item without selecting it. How to achieve that? 

Thank you

 

1 Answer, 1 is accepted

Sort by
0
Milena
Telerik team
answered on 25 Jan 2017, 12:33 PM
Hello,

You can achieve this from client side by attaching 'OnRowSelecting' client event and check for the condition. Now cancel the event using "eventArgs.set_cancel(true)" method based on condition.

Regards,
Milena
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Jugoslav
Top achievements
Rank 1
Answers by
Milena
Telerik team
Share this question
or