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

[Solved] Grid page dropdown shows twice with adaptive rendering

3 Answers 126 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Anamika
Top achievements
Rank 1
Anamika asked on 11 Sep 2014, 07:46 AM
Hello,

I have the mobile _layout.cshtml page with jquery.mobile css file along with kendo css. The kendo dropdown is displayed properly without any problem but when i display grid the page dropdown is shown twice once with normal kendo theme and a blue one below it similar to jquery mobile dropdown with blue rounded border. How can i handle this. Attached an image showing the problem . If i place a kendo dropdown in the page it has no such problem , can i use some stylesheet on page to overcome this?

Anamika

3 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 15 Sep 2014, 06:45 AM
Hello Anamika,

In general Kendo UI does not work well in conjunction with jQuery mobile. The problem comes from the fact that both Kendo UI and jQuery use data attributes for the widget initializations, which messes up the widget initialization and the respective styles. You have two options here:

1. Try to modify the CSS, so you will hide the jQuery styling.
2. Prevent the jQuery mobile widget initialization, so no jQuery mobile dropdown is initialized. 

I hope this information will help you with resolving the issue.

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
Anamika
Top achievements
Rank 1
answered on 15 Sep 2014, 09:36 AM
I tried doing this
 $(function () {
        $('select').attr('data-role', 'none');
       
    });

but works fine only on first time load, when page is reloaded this does not work any more. Any ideas??
0
Kiril Nikolov
Telerik team
answered on 17 Sep 2014, 06:56 AM
Hello Anamika,

I am not really sure why this function execute only the first time the page loads.I would suggest you to take the CSS approach and the just hide the extra dropdown element with its display property. Please note that in general jQuery mobile is not recommended for usage along with Kendo UI because of the duplicated data-role attributes, and therefor your scenario is not officially supported.

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Anamika
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Anamika
Top achievements
Rank 1
Share this question
or