TreeView - CSS Friendly Adapter - PopulateOnDemand

Last post 09-11-2006 8:13 AM by santoshmahale. 7 replies.

Sort Posts:

  • TreeView - CSS Friendly Adapter - PopulateOnDemand

    08-19-2006, 9:24 AM
    • Member
      40 point Member
    • santoshmahale
    • Member since 02-27-2006, 11:18 PM
    • Posts 8

    Dear All,

     

    I am using asp.net 2.0 tree view control inside an ATLAS update panel along with the CSS friendly adapters. I am trying to achieve windows explorer kind of behavior in my web application in the following way:

    On a web page I will a tree control and a main content area. When the user clicks on the expand/ collapse button, he/ she will be given the child nodes (populated from the database) and when the user clicks on the node, the application will loads a relevant web page in the main content area.

     

    This works well using asp.net 2.0 treeview control in the classic fashion by using PopulateOnDemand and handling the OnTreeNodeCollapsed, OnTreeNodeExpanded and OnTreeNodePopulate event. Now, when I use the adapter things starts going wrong. I implemented the solution suggested by Russ (thanks a ton for that brilliant workaround - I used the menu control version) in one of his earlier post and also tried to do some juggling of my own but without any success.

     

    I would appreciate if any one could please give me some pointers/ solution to come on track and lmk where I am going wrong.

     

    Kind regards,

    Santosh

  • Re: TreeView - CSS Friendly Adapter - PopulateOnDemand

    08-19-2006, 1:11 PM
    • Contributor
      3,298 point Contributor
    • Russ Helfand
    • Member since 09-14-2005, 6:22 PM
    • Groovybits.com
    • Posts 741
    The TreeView's populate on demand feature is terrific... but completely absent from the 1.1 version of these CSS Friendly adapters.  It is a very tricky feature to implement in an adapter.  I can assure you, though, that if you are patient, you will be rewarded... 'cause the next rev of this adapter kit will include that feature.  Hang tight.  The next rev isn't too far off... but I can't give you exact timing.
    Russ Helfand
    Groovybits.com
  • Re: TreeView - CSS Friendly Adapter - PopulateOnDemand

    08-20-2006, 12:00 AM
    • Member
      40 point Member
    • santoshmahale
    • Member since 02-27-2006, 11:18 PM
    • Posts 8

    Thanks a lot. I will definitely hang on....

     

    Kind regards,

    Santosh

  • Re: TreeView - CSS Friendly Adapter - PopulateOnDemand

    08-24-2006, 1:21 PM
    • Member
      96 point Member
    • Falcon
    • Member since 08-07-2006, 8:00 PM
    • Posts 35
    While working on the TreeView adapter today I realized just how much of a pain in the butt adapting their control is. In this case, you basically have to rewrite the control and reproduce all of the functionality. Definitely doesn't feel like "adapting" to me. *grin* TreeView is the last thing I need to get "finished" before we can roll out the adapters and start using them for all of our university's projects, so I guess now it's just a race to see if I get it done before or after your next version of the kit. *laughs* (Unfortunately, we've still never figured out the global browser issue, but putting a .browser file in every project won't kill us I suppose. =) )

    Anyway Russ, your work is much appreciated!
  • Re: TreeView - CSS Friendly Adapter - PopulateOnDemand

    08-24-2006, 3:49 PM
    • Contributor
      3,298 point Contributor
    • Russ Helfand
    • Member since 09-14-2005, 6:22 PM
    • Groovybits.com
    • Posts 741

    It turns out the adapting the TreeView control is exceptionally difficult because:

    1. There is a lot to that control if you factor in populate-on-demand, postback event processing and checkboxes (all of which will be in the next version... at least to some degree).
    2. There was a design choice made (might be considered a bug... might not) to have the control's RaisePostbackEvent essentially do nothing if the TreeView control is adapted.  So, the TreeView adapter has to figure out how to raise events for the TreeView control... which is quite challenging because the event delegates are typically protected and inaccessible.  I've overcome that limitation to a large degree in the next rev but it required some compromises and some pretty sophisticated code.

    The next rev is definitely in the pipe and will be coming out soon.  I wish I could give you an exact date but even I don't know that!  Ha ha.  So, I guess the race is on!  Good luck, my friend!

    Russ Helfand
    Groovybits.com
  • Re: TreeView - CSS Friendly Adapter - PopulateOnDemand

    08-25-2006, 4:46 AM
    • Member
      40 point Member
    • santoshmahale
    • Member since 02-27-2006, 11:18 PM
    • Posts 8

    Hey guys,

    One request to all the participants of the race, please do post your code or let us know when the new version is available. I am sure; out there, there would be a huge lot waiting for it. :)

    Kind regards,

    Santosh

     

  • Re: TreeView - CSS Friendly Adapter - PopulateOnDemand

    09-09-2006, 10:52 AM
    • Contributor
      3,298 point Contributor
    • Russ Helfand
    • Member since 09-14-2005, 6:22 PM
    • Groovybits.com
    • Posts 741
    The new version of the CSS Friendly ASP.NET 2.0 Control Adapter kit is now available.  Please visit http://www.asp.net/cssadapters to see or download it.  This version includes populate-on-demand for the TreeView control adapter as well as many, many other enhancements and fixes.  Enjoy!
    Russ Helfand
    Groovybits.com
  • Re: TreeView - CSS Friendly Adapter - PopulateOnDemand

    09-11-2006, 8:13 AM
    • Member
      40 point Member
    • santoshmahale
    • Member since 02-27-2006, 11:18 PM
    • Posts 8

    WOW! Thanks a lot for the update. I will need some time to play around with it and will let you know the feedback soon.

     Kind regards,

    Santosh

Page 1 of 1 (8 items)