All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Hi,
I'm trying to add kendo mvvm switch to kendo mvvm grid cell,
Please give me a good example to do this on both on mvvm.
Hi, Chiran,
You can use the columns.template configuration to add a custom element to a certain column.
// Template <script id="switchTemplate" type="x-kendo/template"> <input data-role="switch" data-bind="enabled: isEnabled" /> </script> // ... Column configuration data-columns="[ { 'field': 'ProductName', 'width': 270 }, { 'field': 'UnitPrice' }, { 'title': 'Switch Column', template: $('#switchTemplate').html() } ]"
Dojo Example:
https://dojo.telerik.com/@gdenchev/InomIDIR
Best Regards, Georgi Denchev 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.