kendoComboBox enable/disable inside grid.

1 Answer 168 Views
ComboBox Grid
sérgio
Top achievements
Rank 1
sérgio asked on 31 Jan 2023, 12:00 PM

I have a combo inside a column of the grid, i already managed to introduce a default value.
Now i need to block the combo actions, so the user cannot remove the default value.

My grid with combobox:

 

My code do default value inside combobox:

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 03 Feb 2023, 08:29 AM | edited on 03 Feb 2023, 08:29 AM

Hello Sérgio,

You can toggle the readonly state of the ComboBox by using the readonly() method:

combobox.readonly(true);

Alternatively, you can append the .k-disabled CSS class to the ComboBox wrapper element:

$(".k-combobox").addClass("k-disabled");

I hope this helps.

Regards,
Nikolay
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
ComboBox Grid
Asked by
sérgio
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or