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

View Navigation

1 Answer 53 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rugved
Top achievements
Rank 1
Rugved asked on 13 Jun 2016, 06:56 AM

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

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 15 Jun 2016, 01:09 PM
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
Tags
General Discussion
Asked by
Rugved
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or