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

Using MobileSwitches for Booleans inside a Grid

1 Answer 181 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 02 Feb 2017, 06:31 PM

I am brand new to Kendo UI. I am curious if it is possible to use a MobileSwitch widget on a Grid to represent a boolean value.  Can we configure the columns of the grid to show another Kendo UI widget?

Where should I go to understand how to build Views that have nested widgets?

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 06 Feb 2017, 10:52 AM
Hello Jeff,

The behavior you describe is not available out of the box. In order to implement it you would need to use custom logic.

You should define custom editor for the boolean field. Then you need to add the mobile switch manually. Also, you can handle the change event for the switch and set the model of the Grid.

Please examine the following example that outlines the approach:



Regards,
Viktor Tachev
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Jeff
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or