Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmatically select a Treeview node?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
ASP.NET
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01373668
Message ID:
01373677
Vues:
14
>Hi,
>
>Are you sure you need to rebuild the tree? Can you not just add/delete or modify an existing node as neccessary ?
>(I'm partly speaking out of igorance here. I haven't worked with it for a while but I think that's what I did......)
>Regards,
>Viv

I can if necessary, but that seems to be more work than it should require.

It is a good suggestion though.

>
>>So far the TreeView control in ASP.NET 2.0 seems even more half-baked than most of the ASP.NET controls.
>>
>>I'm working on an application that uses a treeview for navigation through several layers of heirarchical data. The application inserts/updates/deletes records in that data.
>>
>>Building/rebuilding and displaying the treeview is no problem.
>>
>>Problem comes when I am deep in the treeview and edit a record and want to rebuild the treeview to show updated data. I want to rebuild the treeview and then programmatically select the node I was working on (or select the parent if I deleted or inserted a node).
>>
>>How do I programmatically navigate back to and select a given node after reloading a treeview?
>>
>>I stupidly assumed this should be a trivial task and waited till almost the end of the project to do this.
>>
>>This is in VS2005/ASP.NET 2.0/VB.NET.
____________________________________

Don't Tread on Me

Overthrow the federal government NOW!
____________________________________
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform