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

Dynamically changing the selectable property

6 Answers 848 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 19 May 2014, 07:15 PM
We need to dynamically change the selectability of the rows in the grid.  When a dropdown outside the grid has a certain value, the selectability of the grid is "row" for single-selection.  For the other value, the selectability is "multiple, row".

How do I change the selectability dynamically?  

grid.selectability( (selectedFilter().multiselect == true ? "multiple, row", "row"));
fails with an error saying it is not a function

grid.selectability = (selectedFilter().multiselect == true ? "multiple, row", "row");
has no effect.

Thanks,
Rod Early
McKesson Corp.

6 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 20 May 2014, 01:51 PM
Hi Rod,


Currently this functionality is not supported. If you consider that run-time changing of the selection type is a feature that should be implemented in the Grid, you could post it in the Kendo UI Feedback portal. If it becomes popular among the community, we may consider to implement it in future versions of the Grid.


Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Jeff
Top achievements
Rank 1
answered on 17 Feb 2017, 12:35 AM
Has there been any change regarding the toggling of the selectable option? This would be helpful, since my current project is dealing with lots of columns, and there are significant performance issues in IE with the selectable option turned on.
0
Dimiter Madjarov
Telerik team
answered on 17 Feb 2017, 07:53 AM

Hello Jeff,

Please open a ticket with further details regarding the project, so we could provide assistance.

Regards,
Dimiter Madjarov
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.
0
Jeff
Top achievements
Rank 1
answered on 17 Feb 2017, 09:44 PM
Well, is there a way to programmatically change the selectable nature of the grid? Or does it have to be set at initialization?
0
Dimiter Madjarov
Telerik team
answered on 20 Feb 2017, 07:35 AM

Hello Jeff,

Any Grid option could be changed through the setOptions method:

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

which will recreate the widget with the new options.

Regards,
Dimiter Madjarov
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.
0
Jeff
Top achievements
Rank 1
answered on 21 Feb 2017, 06:40 PM
Thank you for the clarification     
Tags
Grid
Asked by
Richard
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Jeff
Top achievements
Rank 1
Share this question
or