Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
65
WebExplorerBar and WebHierarchicalDataSource not refreshing after postback
posted

Hi, I have a WebExplorerBar bound to a WebHierarchicalDataSource.  The WHDS has two dataviews that each use GenericDataSource controls as their datasource's.  The GenericDataSource control is a simple third party control that can be used in datasource object situations and allows server side code to be written to fulfill the select, update, etc commands. 

This all works fine when the page first loads and everything works as I would expect.  But whenever the page does a UpdatePanel driven postback, the explorer bar doesn't refresh it's contents.  I have it wrapped in it's own UpdatePanel whose update mode is set to Always.  I can tell from debugging the code that the Select method of the datasources being used as dataviews for the WHDS is never being called.  I am explicitly calling the DataBind method again on both the explorer bar and the WHDS, but it won't go out and pull new data.  It's as if it's caching it and doesn't want to let it go. 

How can I force the WHDS to re-bind it's data after partial postback?  I'm calling DataBind but that doesn't seem to be enough.  It's not convenient for me to assign the datasource's themselves via code, but would re-assigning the datasource before calling DataBind again help here?

Thanks in advance.

Parents
No Data
Reply
  • 3726
    posted

    Hi,

    can you try the same scenario against a WebDataTree control and see if it binds correctly?

    Thanks,

    Lubomir

Children
No Data