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 Handy,
I have copied your sample page contents to my test project.
Please find the attached sample.
To be more clear Say if we are having 100 records and virtualpagesize is 20.
First we are in Page1 where we are seeing 20 records.
When we do a scrolling or click on LoadMore Icon the Scrollbar should point it around 38th record position or so.
Thanks in advance,
Regards,
madhavan
Your sample is not working fine.
You are checking the following code in server side.
protected void WebGrid1_InitializePostBack(object sender, PostbackEventArgs e) {
{
FunctionParameter[] parm = new FunctionParameter[1];parm[0].Type = "x";
parm[0].Type = "x";
parm[0].Value = Request.Form["scrollTopPos"];
WebGrid1.ClientAction.InvokeScript("ApplyLatestScroll", parm);}}} But the Request.Form["scrollTopPos"] is not getting passed from aspx page.Please check and let me know.Regards,Madhavan
}
But the Request.Form["scrollTopPos"] is not getting passed from aspx page.
Please check and let me know.
Madhavan
In The sample there is no scrollposition getting passed from client side.
I modified the sample based on webgrid 4.0 sample.'
But always grid.RootTable.GetElement(WG40.BODY, WG40.HTMLDIV).scrollTop is returning 0. Please advice. Regards, Madhafunction DoBeforeRequest(gridId,action) { debugger; var grid = ISGetObject(gridId); var vl = grid.RootTable.GetElement(WG40.BODY, WG40.HTMLDIV).scrollTop + ""; if(action=="More") { grid.AddInput("scrollTopPos", vl); } return true; } function ApplyLatestScroll(x) { alert('in'); var grid = ISGetObject("WebGrid1"); grid.RootTable.GetElement(WG40.BODY, WG40.HTMLDIV).scrollTop = x; return true; } void WebGrid1_InitializePostBack(object sender, PostbackEventArgs e) { if (e.Action == "More" ) { ISNet.WebUI.FunctionParameter[] parm = new ISNet.WebUI.FunctionParameter[1]; parm[0].Type = "x"; parm[0].Value = Request.Form["scrollTopPos"]; if (parm[0].Value != null) { WebGrid1.ClientAction.InvokeScript("ApplyLatestScroll", parm); } } }
grid.RootTable.GetElement(WG40.BODY, WG40.HTMLDIV).scrollTop is returning 0.
Please advice.
Madha
function DoBeforeRequest(gridId,action) { debugger; var grid = ISGetObject(gridId); var vl = grid.RootTable.GetElement(WG40.BODY, WG40.HTMLDIV).scrollTop + ""; if(action=="More") { grid.AddInput("scrollTopPos", vl); } return true; } function ApplyLatestScroll(x) { alert('in'); var grid = ISGetObject("WebGrid1"); grid.RootTable.GetElement(WG40.BODY, WG40.HTMLDIV).scrollTop = x; return true; } void WebGrid1_InitializePostBack(object sender, PostbackEventArgs e) { if (e.Action == "More" ) { ISNet.WebUI.FunctionParameter[] parm = new ISNet.WebUI.FunctionParameter[1]; parm[0].Type = "x"; parm[0].Value = Request.Form["scrollTopPos"]; if (parm[0].Value != null) { WebGrid1.ClientAction.InvokeScript("ApplyLatestScroll", parm); } } }
void WebGrid1_InitializePostBack(object sender, PostbackEventArgs e) { if (e.Action == "More" ) { ISNet.WebUI.FunctionParameter[] parm = new ISNet.WebUI.FunctionParameter[1]; parm[0].Type = "x"; parm[0].Value = Request.Form["scrollTopPos"]; if (parm[0].Value != null) { WebGrid1.ClientAction.InvokeScript("ApplyLatestScroll", parm); } } }
Thanks for the sample.
I will try and let you know.
Why we were not able to maintain the Scroll position?
It is always going top after scrolling down.
So many of our customers are asking for this.
Can you please check with your developers and let us know?
I didn't Understand your term of "Inconsistent data and UI".
Please explain me on this.
Can you please elaborate little more?
Hi,
We are not using entire Webui Studio.
We are using Webgrid 6.0 alone.
Still the hotfix will be applicable right.
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