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
Hi.
I want to persist the actual page index in a session variable so then the next time the page loads, load the last page viewed.
I´m using classic paging with a ObjectDataSource control.
For example, the first time the page loads shows a total of 10 pages, the user navigates to the 5th, then select a row to perform actions in other pages, after all the actions in those several pages the user returns to the original one, and the first page loaded in that page should be the 5th.
I noticed there is a javascript function WebGrid.GotoPage(), but i want to avoid round trips to the database.
¿How can i accomplish this?
Unfortunately the SetCurrentPageIndex function is only available in WebGrid 7.
In WebGrid 6, the available function is the GoToPage which is a javascript function that you have already mentioned in your first post.
Currently I do not have any workaround to set the current page index in the server side for WebGrid 6.
In the latest build of WebGrid, a new server side function has been added in order to set the paging page from the server side. The function is SetCurrentPageIndex.
You could try using this server side function in order to accomplish your goal.
I downloaded and installed the last version and latest hotfix 6.0.7200.219 and there is not such a function. I'm attaching some screenshots. There is a GetCurrentPageIndex funtion do.
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