|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
ASP.NET: MS Treeview loses data when posted to the serverI am using the MS treeview, recently I made some changes in effort to reduce number of times the page have to travel between client and a server. I have roughly around 700 nodes and everytime user checks a check box, page have to refresh, which is very irratating. I wrote javascript functions that will handle the selection and unselection of the nodes, it checks if node has any children and selects them all, and if the parent node is unchecked then it unchecks all the children nodes as well. For that I had to disable ViewState and AutoPostback of the treeview and now everytime I submit the form the nodes added at the runtime disappear. One more thing, I have root and four nodes predefined and I am adding some children nodes at runtime. Thank you very much in advance, any help with this issue would be appreciated!
-------------------------------- From: Eradj Khaidarov ----------------------- Posted by a user from .NET 247 (http://www.dotnet247.com/) <Id>5o3rTeYYxUSwI1gd0epcLA==</Id> Sorry I can't help you but how do you get the parent of a child when the
child is selected in the tree? I need to learn to do this so I can populate the NavigateUrl property with a QueryString value. <%= Clinton Gallagher "Eradj Khaidarov via .NET 247" <anonym***@dotnet247.com> wrote in message I am using the MS treeview, recently I made some changes in effort to reduce news:%233GjJdUWFHA.128@TK2MSFTNGP10.phx.gbl... number of times the page have to travel between client and a server. I have roughly around 700 nodes and everytime user checks a check box, page have to refresh, which is very irratating. I wrote javascript functions that will handle the selection and unselection of the nodes, it checks if node has any children and selects them all, and if the parent node is unchecked then it unchecks all the children nodes as well. For that I had to disable ViewState and AutoPostback of the treeview and now everytime I submit the form the nodes added at the runtime disappear. One more thing, I have root and four nodes predefined and I am adding some children nodes at runtime. Thank you very much in advance, any help with this issue would be appreciated! -------------------------------- From: Eradj Khaidarov ----------------------- Posted by a user from .NET 247 (http://www.dotnet247.com/) <Id>5o3rTeYYxUSwI1gd0epcLA==</Id>
Dynamically Adding Controls
Utilities/Addon for Creating Tables HELP!! Dynamically created webcontrol not accessible on postback Web Page Header and Menu User Controls Best free/cheap Menu Control for 1.1 Staggering Data using DataList, Repeater, etc... Repeater and RadioButton Dynamic load ascx control when DLL not in "/bin" DropDownlist and sorting |
|||||||||||||||||||||||