I have a Dropdown in one of the columns of my Kendo Grid UI whose list I am populating from an Ajax Call of my Web Api by creating kendo DataSource and assigning the DataSource to the Editor of that Column. I am also populating my whole Kendo Grid through a separate Api call.
I have a condition that if the value coming from Api is 'Draft' then the Dropdown should be disabled while doing Inline Editing(ie when clicked on inline edit button), else it should be enabled.
Use the edit
event of the Grid to obtain reference to the DropDownList and disable it (or make it readonly).
http://docs.telerik.com/kendo-ui/controls/data-management/grid/how-to/Editing/access-editor-control
http://docs.telerik.com/kendo-ui/api/javascript/ui/dropdownlist#methods-readonly
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.