Problem with switching views

2 posts, 0 answers
  1. Trent
    Trent avatar
    22 posts
    Member since:
    Dec 2011

    Posted 22 Aug 2013 Link to this post

    Hi all,

    I have a question about switching views. It doesn't work the way I'd expect and I'm not sure if I'm structuring my project correctly.

    My assumption is that I can switch views by using the controller the way you would usually do in ASP.Net MVC. Here's my code and the URL for the start view:


    Code snippet for the button:
    @Html.Kendo().MobileButton().Text("Go to new view").Url("ExpenseClaimListMobile", "ExpenseClaim")

    When I click the button I'd expect the URL to be:

    Instead it is:

    Is this correct? It seems to work, but when I then navigate back to the home page the URL is:
    Once we get to this URL the page has problems like the buttons not working, and my assumption is that this is because the application is being created twice (calling "var app = new;" twice because it's in the _Layout code).

    What am I doing wrong?

    Thanks in advance!
  2. Kiril Nikolov
    Kiril Nikolov avatar
    2596 posts

    Posted 26 Aug 2013 Link to this post

    Hello Trent,

    Initializing the Kendo UI Mobile application twice can cause unpredictable behaviour in your application. So the buttons that are not working and the wrong URL can be caused by the double initialization. Could you please initialize your application just once and then try again to see if it's working correctly?
    Kiril Nikolov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top