Home All Groups Group Topic Archive Search About

ASP.NET: MS Treeview loses data when posted to the server

Author
15 May 2005 12:11 PM
Eradj Khaidarov via .NET 247
I 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>

Author
15 May 2005 2:23 PM
clintonG
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
news:%233GjJdUWFHA.128@TK2MSFTNGP10.phx.gbl...
I 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>