How do I navigate to a different route on a button click in Kendo MVVM - mvvm

I want to navigate to a route when the user clicks a 'next' button, using Kendo MVVM, to display a view. The route will display the next page of a single page application using:
myRouter.route("/AppDetails", function () {
layoutView.showIn("#content", appDetailsView);
}
)

According to documentation: http://docs.telerik.com/kendo-ui/framework/spa/router#navigation. This code:
myRouter.navigate("/AppDetails");
should do this. Isn't it working?

Related

I am trying to make side menu in ionic app. But links of side menu not clicking

I am trying to make a side menu bar in my app. the side menu is showing. but I can't click those links. When I inspect the page and select an item, it is selected tag.
Assuming that you have used this example. This example does not implement click events, to add them:
In React, use onClick() handler.
In Angular, use ng-click or bind event (click)
This should be added to every "ion-item" tag in above example.

How to exit app with back button instead of just pop

I am building an app(Learning) and on first use the app it show authentication page with login and signup button if user click any one button and fill the fields it will be navigate to homePage.
Navigation :
Authentication Page=>login=>main page
Now the problem is I don't want users to get back to login page if they press back button on home page. Instead I want to exit the app.
How can I do it?
When you navigate from login to main page use Navigator method .pushReplacement() instead of .push() and that will replace the login page on Navigator stack. Which means that the main page will be the only one on the stack. Pressing the back button or calling method .pop(), in that case, will close the application.

How do I navigate from a tab page to another tab page?

What is the best way to navigate from a tab page 1 to another tab page 2?
The scenario is that I when I press a button in a tab page, it should navigate to another tab page. I can't set the main tab page's selected tab property because I'm in the tab page 1 viewmodel.
Here is my code, this isn't working but is what I intend to do.
NavigationService.NavigateAsync($"{KnownNavigationParameters.SelectedTab}=TabPage2");
The working code is this, but the problem is that it reloads everything since it navigates to another instance of the MainTabbedPage then selects the TabPage2 tab.
NavigationService.NavigateAsync($"MainTabbedPage?{KnownNavigationParameters.SelectedTab}=TabPage2");
If you want to navigate to tab use the following code, I am using this for navigating from a drawer and it works fine hope it will work for you.
var navParams = new NavigationParameters
{
{ "Title", "Page Title" }
};
NavigationService.NavigateAsync("NavigationPage/{Tab Parent Page}/" + {Tab Page}, navParams );

two view in the same page

I am working with asp.net MVC2, I'm new in development. net
I have a view that contains 2 dropdownlist and a button, I want when I click the button, another view is displayed, I want both to appear on the same page
There is two way you can implement this
1) With Complete post back you can use Html.RenderAction or load the partial view. You can use some flag to differentiate between the first time page load and post back
2) You can use the jquery AJAX and call the controller action of another View and get the content and write it to the div of the page .
Please do some research work on both and I think you can get the result as you want.

how to add button action in PSPDFKit

I am using PSPDFKit and wondering how to add button programmatically on same pages (say page 21 of pdf) and when I click that button, I should go to some another view controller where I will have data according to the page number.
e.g. I have buttons on all pages and if I click on page 21 button 1, I should get re-directed to new view controller and there I will be having label which will say page 21.
Any idea/ suggestion how to get this done?
Check out the PSCButtonPDFViewController in PSPDFCatalog to see how to add buttons to a PSPDFPageView. Then it's simple to add a custom target that does what you want.