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 ALL,
We are working on the requirement of moving next and previous record on click of button.
But We have enabled VirtualLoadMode.
Say we have virtualpagesize is 6 and totally there are 30 records.
Say when the grid loads it will load with 6 of 30.
Say I am in 6th Record and I want to go 7th record on click of MoveNext button.
How we can achieve this?
We are using the following code for MoveNext and MovePrevious.
Please advice,
MoveNext:
{
var nextRow = selectedRow.GetNextRow();
nextRow.Select();
}
MovePrevious:
previousRow.Select();
Regards,
Madhavan
Hi Madhavan,
In order to do so, first, you will need to get the index row of the selected object, then, from that, if the current row index is on the total loaded rows, we need to load more data by "wgLoadMore('WebGrid1') to retrieve the next selected data. After we load more data then we can go to the 7th or next record of database.
There are attached codes that I made in Java Script using 2 buttons to go on the next and previous selected data.
Thank you,Andi Santoso
Hi Andi,
We are having problem in attaining this in our scenario.
We are having a Usercontrol ascx page which contains the grid.
We are loading this Usercontrol through the webcontrol.
Webcontrol is loading through the Panel.
In the Page Oninit method we are adding our webcontrol to the panel.
I put a button in my Usercontrol ascx page and called the function wgLoadMore(
But in the same button if i call grid.Refresh() and all it is fine.It is refreshing only the data.
Please advice.
It is urgent.
The attached file will give you a glimpse of our scenario.
To be More Precise,
I created a sample File System Project which contains testctrl.ascx where grid and buttons has been placed.
In the Load.aspx page i loaded the Testctrl.ascx page.
After loading Click the button RefreshGrid and this will refresh only the grid.
After clicking LoadMore button ,the entire page gets loaded once again.
I have replicated your issue and having a same one. I have send this issue to our developer to investigate it. I am so sorry, but if there is a new news from our developer, I will inform you as soon as possible.
Thank you,
Andi Santoso.
It is a very urgent feature for our Customer Roland.
Please Provide the solution ASAP.
I completely understand your situation. I will keep follow up to our developer to give a solution as soon as possible.
Sorry to make you worry, but we inspected the issue and it appears to be code issue, and it is not a bug. The right way to call the function is to pass the real WebGrid ID, which can be obtained after accessing to the Grid Object.
Here's the sample codes:
function loadMore() { var grid = ISGetObject("WebGrid1"); wgLoadMore(grid.Id); }
Hope it can help and let me know if you have any more questions.
Andi Santoso
Hi Andi.
Thanks for the response.
I will let you know any other question is there once after i integrate the move next feature.
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