N
nicksertis
Hi All,
I'm working on a project which has thrown up an issue that I'd like
some advice on. It basically calls for me to display a tree like
structure, but for each node to be editable (ie each row will have a
number of fields that will become editable when selected). The tree has
to be collapsable too. This is all on .NET version 1.0.
I was thinking that I could use a datalist to display all first level
(in the tree) items, and then when one is clicked I would insert rows
into the list that represented all items under that tree node. If
another top level item was clicked, I would first remove/collapse the
second level items from the list and then insert the second level items
for the newly clicked item.
Does any of this make sense? The main hurdle in this solution is
inserting rows into a datalist or datagrid, which i'm not sure is even
possible? The reason for trying to do this rather then reload the whole
tree is to save accessing the DB and reloading the tree each time the
page loads. Is there a clever way to store a dataset in memory (session
var etc) if rebuilding the tree each time is necessary?
Let me know if any of this is unclear or if you need more info.
Many Thanks,
Nick
I'm working on a project which has thrown up an issue that I'd like
some advice on. It basically calls for me to display a tree like
structure, but for each node to be editable (ie each row will have a
number of fields that will become editable when selected). The tree has
to be collapsable too. This is all on .NET version 1.0.
I was thinking that I could use a datalist to display all first level
(in the tree) items, and then when one is clicked I would insert rows
into the list that represented all items under that tree node. If
another top level item was clicked, I would first remove/collapse the
second level items from the list and then insert the second level items
for the newly clicked item.
Does any of this make sense? The main hurdle in this solution is
inserting rows into a datalist or datagrid, which i'm not sure is even
possible? The reason for trying to do this rather then reload the whole
tree is to save accessing the DB and reloading the tree each time the
page loads. Is there a clever way to store a dataset in memory (session
var etc) if rebuilding the tree each time is necessary?
Let me know if any of this is unclear or if you need more info.
Many Thanks,
Nick