View Navigation

2 posts, 0 answers
  1. Rugved
    Rugved avatar
    3 posts
    Member since:
    Jun 2016

    Posted 13 Jun Link to this post

    Hi,

    I  just began using this platform last week.I want to navigate from one view to another on submit button click.I used the following code in submit function

     var app = new kendo.mobile.Application(document.body, {
                    transition: 'slide',
                    skin: 'nova',
                    initial: 'components/home/view.html'
                });
                app.navigate("components/formView/view.html")
            },

    I want to go from home-view.html to formview-view.html

    It navigates to the other view but the next html page is not displayed properly.

    Also when i hit back button home-view.html is also not displayed properly.

    I am really new to this platform so please help.

    Thanks,

    Rugved

  2. Tsvetina
    Admin
    Tsvetina avatar
    1876 posts

    Posted 15 Jun Link to this post

    Hi Rugved,

    It seems like you are incorrectly performing the navigation. Note that the kendo.mobile.Application must be instantiated only once in your app. Later, when you need to navigate, you can use the kendo.mobile.application.navigate() method:
    function onSubmit() {
        kendo.mobile.application.navigate("components/formView/view.html");
    }

    If you don't have other logic to perform but only want to navigate from one view to another, you can also consider adding a hyperlink to the view using the Views service.

    Regards,
    Tsvetina
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
Back to Top