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

Mobile Grid - how to set or inherit mobile class?

1 Answer 37 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ptw
Top achievements
Rank 1
ptw asked on 17 Nov 2016, 02:17 PM

Hi,

I have some Kendo mobile buttons, and outside a Kendo grid they're style is as expected  (ie. with "km-button" classes and data-icon="compose").

However when I put them into a grid (via an MVVM data-row-template), they change/lose their icons and style. Clearly this is because, being in the grid, they're inheriting from a kendo (k) class of the grid - and this overrides their kendo mobile (km) class.

Is there a easy way to render buttons in their kendo mobile form within a grid? Or somehow tell the grid to "act mobile"?

Many thanks

- Paul 

(I see in the kendo mobile demo grid here: https://demos.telerik.com/kendo-ui/m/index#grid/adaptive that most of its contents are rendered with Kendo (k) classes. Perhaps this means the grid excludes or does not support content with "km" classes?) 

 

1 Answer, 1 is accepted

Sort by
0
ptw
Top achievements
Rank 1
answered on 20 Nov 2016, 04:58 AM

For anyone else wondering about this ...
I just found a post (April 2014) that explains things - basically (at that time) Kendo grid was/is a web widget that uses kendo styles (not kendo mobile ones) and "at present there is no way to force the widget to use only km-classes".

(ref: http://www.telerik.com/forums/kendo-mobile-grid---under-adaptive-rendering#wQtVC69YYUSdKGu7KPYj-w)

Tags
Grid
Asked by
ptw
Top achievements
Rank 1
Answers by
ptw
Top achievements
Rank 1
Share this question
or