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

Controlling if links/buttons use ajax or just goes to the page.

4 Answers 129 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 2
Michael asked on 01 Feb 2012, 05:26 PM
Hi,

So I've just started using the UI, but I've used the Jquery mobile one before.  Features I liked that I can't find is:

Go to an another page.  
     Page 1 url: /home
     Page 2 url: /search

and NOT
    url: /#/search

I don't want the ajax calls to happen.  I like them don't get me wrong but the next page does it's own stuff.  

can you add the feature of "data-ajax=false" or "rel=external".  Something so we can move to the next page and not load within.

Thanks

4 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 01 Feb 2012, 06:06 PM
Hello,

Actually, the feature you request is already present, but we forgot to document it. 

data-rel="external"

should do the trick. 

Kind 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
Michael
Top achievements
Rank 2
answered on 01 Feb 2012, 07:23 PM
Well that did nothing.  You would click on the tab icon and nothing would happen.  

<div data-role="tabstrip">
    <a href="#home" data-icon="home">Home</a>
    @Html.ActionLink("About", "About", null, new { data_icon = "about" })
    @Html.ActionLink("Search", "Search", null, new { data_icon = "search", data_rel="external" })
    @Html.ActionLink("Contact", "Contact",null, new { data_icon="contacts"})
</div>

0
Petyo
Telerik team
answered on 02 Feb 2012, 09:51 AM
Hello,

Due to a bug on our side, the data-rel attribute I have described does not work in the beta release with the tabstrip widget (buttons and list view items work).

A workaround I may suggest is to handle the tabstrip select event and navigate there. You can see an attached example. 

All the best,
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 06 Oct 2012, 03:45 AM
Hello,

I have a CMS application that is using the data-rel attribute to link to external pages within the cms (the application hangs up if I do it the other way).

The only issue I have is when I try to launch my app from the home screen on my iPhone, it displays full screen at first, then as soon as I click another link, it jumps over to safari, then displays the bottom bar with the forward/back buttons etc.

I have this setup on http://www.themodmedia.com currently.

Is there any way around this?

Thanks in advance, 
Ronnie
Tags
General Discussions
Asked by
Michael
Top achievements
Rank 2
Answers by
Petyo
Telerik team
Michael
Top achievements
Rank 2
Ronnie
Top achievements
Rank 1
Share this question
or