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

Kendo UI Grid for Angular : Disable a checkbox in ColumnMenuChooser component

1 Answer 1374 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kate
Top achievements
Rank 1
Kate asked on 26 Apr 2021, 12:30 PM

Hello, 

I'm using Kendo UI Grid for Angular. I'm using the ColumnMenuChooser component in two places in my code.

In one place, I'm using just the generic directive :

<kendo-grid-columnmenu-chooser [service]="service">
</kendo-grid-columnmenu-chooser>

In another place, I'm using a more customized code :

<ng-template #template>
<kendo-grid-columnlist
[columns]="columns"
[applyText]="localization.get('columnsApply')"
[resetText]="localization.get('columnsReset')"
[autoSync]="autoSync"
[allowHideAll]="allowHideAll"
(apply)="onApply($event)"
(columnChange)="onChange($event)"
>
</kendo-grid-columnlist>
</ng-template>

In both places, is it possible to disable a column's checkbox according to its column's property ?

I know this was possible in Kendo UI grid for jQuery but I can't find a way to do it in Kendo UI for Angular.

The goal is that if a given column has a certain property true (for example "locked = true", then it would be impossible for the end user to hide it via the ColumnMenuChooser component.

Thank you in advance

 

1 Answer, 1 is accepted

Sort by
0
Svet
Telerik team
answered on 29 Apr 2021, 08:06 AM

Hi Kate,

Please see the following forum thread for an answer:

https://www.telerik.com/forums/disable-a-checkbox-in-columnmenuchooser-component

Regards,
Svetlin
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
General Discussions
Asked by
Kate
Top achievements
Rank 1
Answers by
Svet
Telerik team
Share this question
or