Using webdatatree and after selecting a node to load a grid it does a postback as expected. I have a long list in the tree and after the postback the scrollbar goes to the top. Is there a way to get the position to stay on the node that I clicked after the postback?
Hi jcom39201,
The following article details how you can maintain the position of the WebDataTree's scrollbar through postbacks:
http://blogs.infragistics.com/blogs/radoslav_minchev/archive/2010/11/03/retain-scrollbar-position-on-postback-of-webdatatree-control.aspx
Please tell me if this helps.
Best Regards,
Petar IvanovDeveloper Support EngineerInfragistics, Inc.http://ko.infragistics.com/support
I am getting errors and cannot build. It has 3 errors. First is a syntax error and next 2 errors say that hiddenfield1 is not declared. My WebDataTree is named WebDataTree2. If I take out the <script> it builds ok. Put it back in I get errors. Also added the clientevents to the tree and that seems fine. Not sure what to do. Thanks.
Never mind. Duh, I was thinking that HiddenField1 was inherint to the webdatatree. I added a textbox and HID it and used that in javascript. Works good. Thank You!
Hi
I am using ASP.net 12.2version and my application that makes use of masterpage, and child form has a webdataTree that will have hundreds of child nodes,hence I am loading on demand OnExpand and OnCollapse of webdatatree . now, I scroll down to a node and expand the node(postback happens ) , the vertical scroll bar is reset to the top . I tried adding your code suggestions to restore the vertical scroll bar position but it doesn't work for me. When debugged through the code, the HiddenField value is always null, scroll position is not set and onscrollhandler() is not getting called.
please help!
Thanks,
Rupasri
Please do not hesitate to contact me if you need further assistance.