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

disable ajax in KendoUI Mobile?

5 Answers 131 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ronnie
Top achievements
Rank 1
Ronnie asked on 15 Aug 2012, 10:32 PM
Hello,

I am working Kendo Mobile into a CMS and I think the ajax is screwing things up for the navigation. Is there a way I can disable ajax for navigation items?

I know this works for jquery mobile:
<script type="text/javascript">
      $(document).bind("mobileinit", function(){
            $.extend(  $.mobile , {
                  ajaxEnabled : false,
                  pushStateEnabled : false
             });
      });
    </script>

But I'm not sure how to accomplish this same thing with Kendo. Any help would be much appreciated!

Thanks!
-Ronnie

5 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 16 Aug 2012, 06:33 AM
Hello Ronnie,

Kendo UI Mobile uses ajax to load its remote views. I assume that you want to use vanilla http navigation (with page reloading) - in that case, you should specify data-rel="external" to the mobile buttons/links/tabs. This would prevent the ajax call from happening. 

Regards,
Petyo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Ronnie
Top achievements
Rank 1
answered on 16 Aug 2012, 04:37 PM
Hey there,

I tried that method, but the application is still appending a hashtag (#) to the URL's.

Here is the app I am working on: http://kendo.themodmedia.com

You can see that the nav only works like 3 times before it no longer works, and the hashtags are being appended to the URL's.
0
Petyo
Telerik team
answered on 21 Aug 2012, 07:19 AM
Hello Ronnie,

I failed to reproduce the problem on the URL you have provided. Is it possible for you to provide concrete steps (click here, than click here, etc)?

Greetings,
Petyo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
sidharth
Top achievements
Rank 1
answered on 12 Aug 2013, 08:36 PM
Hello, I am working on the same issue right now. Adding data-rel="external" doesn't seem to help. It just shows me a blank page. Also, why is the dreamweaver
not loading the auto complete tags. I cannot find any data-* attributes.
Does Kendo mobile  UI also work in way Jquery mobile works? Loading all the content on the first page ? 
Kendo Mobile works fine for the first page but then on loading different page using a tag doesnt seem to show kendo mobile support.
Please help.
0
Petyo
Telerik team
answered on 15 Aug 2013, 03:02 PM
Hi,

you can try using the serverNavigation configuration option. Keep in mind that the mobile application should be re-instantiated each time the document is reloaded (if this is what you are trying to achieve, of course). 

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