Saturday, March 24, 2012

Atlas treeview

Hi I'm looking at implementing Atlas on an existing site that has a rather complicated Treeview. I'd like to be able to populate nodes of the tree onclick events.

Is this possible with the Atlas framework at the moment?

I recently wrote an appplication where I have a TreeView inside of an UpdatePanel and I add/remove/reorder nodes on the tree using Button and TextBox controls. It's beautiful to see the tree update without postbacks!
Depending on how complicated your situation is, you may run into limitations though.

I also updated an existing application to do the same thing and I found that I had to rewrite part of the logic to make it work properly. I originally had a significant amount of code to maintain the state of the tree between postbacks (for example to make sure that the tree was still expanded to the correct level and the selected node was still selected after an new node was added). I still needed code of the same sort, but it needed to behave a little differently after Atlas was involved.

No comments:

Post a Comment