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

How to make only some columns' cells selectable

2 Answers 847 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jerry
Top achievements
Rank 1
Jerry asked on 10 Mar 2015, 07:04 PM
I have two group of columns, i.e. Group A and Group B. I would like to make cells in Group A selectable, but keep cells in Group B not selectable. 
Is there a way to do it? 

Thank you for any suggestion.

Jerry

2 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 12 Mar 2015, 01:50 PM
Hi Jerry,

Partial (configurable) selection in the Grid is unfortunately not supported. Theoretically, you can subscribe to the Grid's change event, see what is currently selected and remove the k-state-selected CSS class from the elements (cells or rows), which should not be selectable.

http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#events-change

http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#methods-select

Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Jerry
Top achievements
Rank 1
answered on 13 Mar 2015, 08:29 PM
Got it, thank you Dimo!
 -Jerry
Tags
Grid
Asked by
Jerry
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Jerry
Top achievements
Rank 1
Share this question
or