473,395 Members | 1,442 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to keep state of treeview control

Hello,

I've created a web application using Visual Studio 2005. I have a treeview
control there. When the user expands it and clicks on the link, the treeview
collapses automatically.

Is it possible to keep it expanded to the level the user expanded it? In
other words, to keep the state of the treeview control between postbacks? Of
course I can use frames or something like this, but it should be an easier
way to do this.

I would appreciate your advice.

Thank you,

--
Peter Afonin
Sep 20 '06 #1
2 2292
Is ViewState enabled for the treeview?

Sean

Peter Afonin wrote:
Hello,

I've created a web application using Visual Studio 2005. I have a treeview
control there. When the user expands it and clicks on the link, the treeview
collapses automatically.

Is it possible to keep it expanded to the level the user expanded it? In
other words, to keep the state of the treeview control between postbacks? Of
course I can use frames or something like this, but it should be an easier
way to do this.

I would appreciate your advice.

Thank you,

--
Peter Afonin
Sep 20 '06 #2
Yes, it is.

Peter

"Sean Chambers" <dk****@gmail.comwrote in message
news:11*********************@e3g2000cwe.googlegrou ps.com...
Is ViewState enabled for the treeview?

Sean

Peter Afonin wrote:
>Hello,

I've created a web application using Visual Studio 2005. I have a
treeview
control there. When the user expands it and clicks on the link, the
treeview
collapses automatically.

Is it possible to keep it expanded to the level the user expanded it? In
other words, to keep the state of the treeview control between postbacks?
Of
course I can use frames or something like this, but it should be an
easier
way to do this.

I would appreciate your advice.

Thank you,

--
Peter Afonin

Sep 20 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: R. Sammut | last post by:
Hi, I have a treeview control that is updated every 30 seconds. The treeview nodes are cleared and new nodes (same number of nodes and hierarchy) are added to the treeview. Now I need to save...
3
by: Peter | last post by:
Hello, We are inserting a side menu to our application using a class that is writing HTML on all our pages. This is a part of the code as an example: writer.Write(" <table WIDTH=""100%""...
7
by: Andrew Robinson | last post by:
I have a treeview control that I use as a menu & navigation control within a master page. The nodes for this control are loaded from a database which contains the text and url of each like and the...
4
by: Pål Andreassen | last post by:
We are using a TreeView defined in a MasterPage for navigation. The tree holds it's state turing postbacks just fine since it's using viewstate. But whenever a node click results in a redirect to a...
1
by: keithb | last post by:
Can someone provide general information on how to maintain state for a treeview control. Specifically, I need the application to maintain node expansion across postbacks. Thanks, Keith
1
by: keithb | last post by:
I have a TreeView control with EnableViewState = True; however, the TreeView does not maintain its previous state on postback. Is there something else that needs to be set up? Thanks, Keith
2
by: jeff_m | last post by:
Hello, I'm having some trouble with a combination of these elements: the Session state, a Repeater control, a TreeView control, and a button. Here's the process: - User logs in (loginid...
0
by: Mel | last post by:
I fluent in Visual Basic programming Windows applications but I am a brand new user to ASP.NET (I'm on my 3rd day now, woo hoo!). I was wondering if there is a way to remember the last state of...
1
by: Nikron | last post by:
Hi, I'm having an issue with the ASP.NET 2.0 Treeview control and persisting its' state accross requests. My Control is embedded within a master page and is used for site navigation. My problem...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.