Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted
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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...