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

Selectable property in grid

2 Answers 81 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Pouya
Top achievements
Rank 1
Pouya asked on 16 Aug 2018, 02:23 PM

Hi,

I have a problem with Selectable. The rows are selectable even though it is false.

Please check this link:

https://angular-td5xc3.stackblitz.io

Regards,

/Pouya

 

2 Answers, 1 is accepted

Sort by
0
Pouya
Top achievements
Rank 1
answered on 16 Aug 2018, 02:27 PM

I need to add that if selectable is set to true and then false it works fine.

I post the link here again 

https://angular-td5xc3.stackblitz.io

0
Accepted
Dimiter Topalov
Telerik team
answered on 17 Aug 2018, 06:52 AM
Hello Pouya,

The KendoGridSelectBy directive alongside binding the selectedKeys property act as a separate selection mechanism and regardless of the Grid "selectable" setting (that only has meaning when used as a standalone means for enabling/disabling the Grid default built-in selection functionality). When the mechanics above are used to customize the selection functionality, the selectable property is ignored:

https://www.telerik.com/kendo-angular-ui/components/grid/selection/#toc-persisting-the-selection (note that the selectable option is not used at all)

Here is the updated StackBlitz where the kendoGridSelectBy directive and selectedKeys are omitted from the Grid configuration and [selectable]="false" has the expected effect:

https://stackblitz.com/edit/angular-td5xc3-m3grra?file=app/app.component.ts

I hope this helps.

Regards,
Dimiter Topalov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Pouya
Top achievements
Rank 1
Answers by
Pouya
Top achievements
Rank 1
Dimiter Topalov
Telerik team
Share this question
or