Hi, i have a kendo web application who use popOver widget, to use popOver widget i converted the application to a kendo-mobile-application
(adding kendo-mobile-application attribute and include all html body inside a kendo-mobile-view tag.)
The application works fine except for kendo-dropdownlist who render always as mobile dropdown.
I would like to choose when dropdownlist have to render as mobile and when as desktop.
It is possible?
I noticed that if avoid to include the kendo.*.mobile.css the dropdown render as a normal desktop mode, but doing so the popOver widget not render well..
Otherwise how i can use mobile widgets inside web application without transform the application as mobile?
Thanks
7 Answers, 1 is accepted
Hello Claudio,
We do not have such configuration out of the box, and currently the dropdownlist is always rendered as a native component (actionsheet) when included in mobile application. You can submit this as a feature request on UserVoice, so that it is considered for implementation in a future release.
Regards,
Kiril Nikolov
Telerik
Hello Marlon,
We strive to implement the most voted features for the UserVoice section, currently this functionality has just 5 votes, which make it a low severity item. If more people vote for this, we will see it implemented sooner.
Regards,
Kiril Nikolov
Telerik
Hi Claudio,
I struggled with this too. The solution took a while to figure out, but fortunately it's not that big of a deal in the end. Call the 'replaceMobileDropdownList' function from the 'init' event handler for your view. Can't vouch for what other kendo widgets will have the data-role['popup'] attribute that might be affected by this....my view just had some dropdown lists.
// Replaces the 'mobile' version of a drop down list with the 'desktop' version
replaceMobileDropdownList:function(){
var popups = $("body").find("div[data-role='popup']");
// bind open event
$.each(popups, function(i,element){
$(element).data("kendoPopup").bind("open", function(e) {
var w = $(e.sender.wrapper);
w.switchClass("km-popup km-widget", "k-popup k-widget",0);
});
});
},
Hi Robert -
Been a couple years now, but glad to hear it worked!!
Justin