axum Posted April 2, 2003 Posted April 2, 2003 Hi, i have more of a procedural question about a Treeview. I have a Treeview on my page, this is populated with a set of ID's and their corresponding display text, i also have a Tabstrip on the page which is split into 4. Basically when a user clicks on a different TabStrip this populates the Treeview with a different set of ID's/text. I have a hashtable to store ALL the ID's and Text in, and i use an ArrayList to store the Users selected choices. At the moment i am thinking about using a couple of Session Variables to enable me to persistently store the clicked IDs (as i need to show these on every page). To reload the Treeview with checked/unchecked boxes i am going to have to loop through the ArrayList of Ids, in turn looping through all the Nodes in the Treeview. This will happen on the click of a Save button. But i also need to store ALL the checked nodes when the user clicks either the Save button, or clicks off onto another Tab. Just wanted to know if this sounds like a good way to do things..? Am i on the right track? Does anyone have any suggestions or may have done something similar in the past? Any comments greatly appreciated, Thanks Axum Quote
dnagroove Posted April 3, 2003 Posted April 3, 2003 Why not invoking a "Data will be lost" message once a tab is being pressed in case any changes were made? It should be very clear to the user and make your life much easier. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.