iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Consider i am in page x, i want to move to x+1 or x-1 page in client side programatically. How can i do this?
Hi Siva,
May I know what control that you used? Is it WebGrid or WebDesktop? Do you mean that the page will be navigated to different page when you click on a row?
Or if you used WebDesktopWindow, do you want to navigate the page in postback (redirect the whole page) or just changing the content of the window?
Regards,
Julia
Please note i have asked this question under webgrid. what is required is, Consider the grid is loaded with 10 pages, on the click of the grid row, i am raising a popup window which will contain some detailed info of the row. In the popup there will be next and previous buttons, when the user clicks next button, i will get the currently selected row and move to the next row. When the user reaches the last row of the page x(may be 1 or 2 or any page), i want to move the next page and load the first row details in the popup. So i should know the current page index and total number of pages in the grid. How to get the current page index and total number of pages available through javascript?
Here is the sample of javascript's code where you can get the WebGrid's current page index and the total pages number:
function Button1_onclick() { var text = document.getElementById("Text1"); var grid = ISGetObject("WebGrid1"); var currentPage = grid.CurrentPageIndex; var totalPages = grid.TotalPages; text.value = "current page = " + currentPage + " total page = " + totalPages; }
I hope this can help. Let me know if you need another help.
Thanks for the solution. Please let me know, where i can find those information available. So that i can see all the methods and properties available.
Siva,
You can also go to a certain page through client-side API by using GotoPage method. For example:
grid.GotoPage(5); // go to page 5
All WebGrid's client-side API such as properties and methods can be found in WebGrid Product Documentation, specifically in Client-side References node then expand to each class to see its APIs, eg, WebGrid class.
Hope this helps,James.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname