This question is locked. New answers and comments are not allowed.
The Grid and Chart controls remain with the default (iOS) appearance when displayed on Android (see attachment). The other controls seem to properly adapt, but not these two.
Is there something special I need to make these controls to switch to the Android theme?
Is there something special I need to make these controls to switch to the Android theme?
8 Answers, 1 is accepted
0
John
Top achievements
Rank 1
answered on 29 Nov 2014, 01:19 PM
After some more searching, I found a reference to changing the theme for the chart, so I can check for Android and add the "black" theme. However, this seems odd, given that most of the widgets adapt, plus I'm not sure black matches the normal Android emulation theme.
options = { ...
if (kendo.support.mobileOS.android)
options.theme = 'black';
div.kendoChart(options);
Also, setting the theme doesn't seem to work for the grid at all.
So, what is the Android theme and how do I apply it to the grid? (And as a side question, why should I have to?)
options = { ...
if (kendo.support.mobileOS.android)
options.theme = 'black';
div.kendoChart(options);
Also, setting the theme doesn't seem to work for the grid at all.
So, what is the Android theme and how do I apply it to the grid? (And as a side question, why should I have to?)
0
Hi John,
There is no Android theme for Kendo UI web widgets - in order to apply the black theme to all web widgets you should include it (instead of the default one). For more detailed information take a look at the following help topics:
- Link 1
- Link 2
Regards,
Iliana Nikolova
Telerik
There is no Android theme for Kendo UI web widgets - in order to apply the black theme to all web widgets you should include it (instead of the default one). For more detailed information take a look at the following help topics:
- Link 1
- Link 2
Regards,
Iliana Nikolova
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
John
Top achievements
Rank 1
answered on 03 Dec 2014, 11:32 AM
Thanks for the links.
The issue is that the way your mobile UI works is the theme is selected automatically based on the same set of styles and JavaScript. So, there is no way to include one theme "instead" of the default one; that would break the appearance on iOS.
What I need is the way to switch it dynamically, based on the device on which it's running, the same way the rest of the mobile widgets do. It seems odd that it should be necessary for me to do this myself, rather than it automatically happening, but I'm willing to add the code to do it manually if necessary.
Another concern is whether Android appearance always correspond to "black" or if there are situations that might cause it to use a different appearance. You can see how my having to manually specify some of the appearance settings can cause incompatibilities with the appearance that is automatically used by the rest of the widgets.
The issue is that the way your mobile UI works is the theme is selected automatically based on the same set of styles and JavaScript. So, there is no way to include one theme "instead" of the default one; that would break the appearance on iOS.
What I need is the way to switch it dynamically, based on the device on which it's running, the same way the rest of the mobile widgets do. It seems odd that it should be necessary for me to do this myself, rather than it automatically happening, but I'm willing to add the code to do it manually if necessary.
Another concern is whether Android appearance always correspond to "black" or if there are situations that might cause it to use a different appearance. You can see how my having to manually specify some of the appearance settings can cause incompatibilities with the appearance that is automatically used by the rest of the widgets.
0
Hi John,
Apologies for not being clear enough in my previous post. The mobile skins are platform specific and are applied to themobile widgets only. On the other hand, "default", "black" etc. themes are Kendo UI themes for theweb components. Although Kendo UI Web widgets can be used in a mobile application, they will not get the mobile skin styles. Also I would recommend to check the following links which may be of help:
- Link 1
- Link 2
On a side note, you could submit this idea as a feature request at our UserVoice portal - this way the community would be able to evaluate it and if the suggestion gains popularity we will consider it for future releases.
Regards,
Iliana Nikolova
Telerik
Apologies for not being clear enough in my previous post. The mobile skins are platform specific and are applied to themobile widgets only. On the other hand, "default", "black" etc. themes are Kendo UI themes for theweb components. Although Kendo UI Web widgets can be used in a mobile application, they will not get the mobile skin styles. Also I would recommend to check the following links which may be of help:
- Link 1
- Link 2
On a side note, you could submit this idea as a feature request at our UserVoice portal - this way the community would be able to evaluate it and if the suggestion gains popularity we will consider it for future releases.
Regards,
Iliana Nikolova
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
John
Top achievements
Rank 1
answered on 09 Dec 2014, 03:38 PM
It's a shame that there's a difference between mobile widgets and non-mobile widgets. Other than appearance, is there some reason one shouldn't use the grid in a mobile app?
0
Hello John,
There is no reason not to use the Kendo UI Grid in a mobile application, as the Grid has adaptive rendering as well, demonstrated here:
http://demos.telerik.com/kendo-ui/grid/adaptive
You can submit feature requests on UserVoice, for mobile platform specific styling of the web widgets, so it can be considered for a future implementation.
Regards,
Kiril Nikolov
Telerik
There is no reason not to use the Kendo UI Grid in a mobile application, as the Grid has adaptive rendering as well, demonstrated here:
http://demos.telerik.com/kendo-ui/grid/adaptive
You can submit feature requests on UserVoice, for mobile platform specific styling of the web widgets, so it can be considered for a future implementation.
Regards,
Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
John
Top achievements
Rank 1
answered on 12 Dec 2014, 03:42 PM
This whole thread is about grid (and chart) styling for mobile.
I did submit a feature request for mobile styling of the grid when that was suggested four days ago.
I did submit a feature request for mobile styling of the grid when that was suggested four days ago.
0
Hello John,
Then we will consider this feature request for future implementation.
Thanks for submitting it!
Regards,
Kiril Nikolov
Telerik
Then we will consider this feature request for future implementation.
Thanks for submitting it!
Regards,
Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!