Skip to content

Replies

0
Shane
Shane answered on Apr 23, 2012 4:25 PM

Ah.. Thank you!

Additional questions.

1. Where in the 11.2 documentation is the detail on "GridView.ClearDataSource()" located?
2. While I was looking through the properties of the whdg and found WebHierarchicalDataGrid1.RefreshBehaviors() which appeared to do the same thing as the ClearDataSource(). What is the difference between them?

0
Shane
Shane answered on Apr 19, 2012 5:18 PM

Hi,

    The Date Picker and Button are outside of the Update Panel. Only the WHDG is inside the update panel. On clicking the button, a AsynPostBack is fired from the UpdatePanel and the code from the earlier post is run. I tried the EnableAjax = False and it didn't change anything. Still only shows the same 1 day of information unless i pick a date where there is no data. Then the grid will be cleared out and then when i select another day with data then it populates it with that days data. Its like it isn't getting the message to clear out the old data before populating the new data and is just keeping the old data.

 

Additionally, i removed the update panel and just left he date picker, button and WHDG in the page and got the exact same result. So its not the UpdatePanel that is the problem. Something isn't telling the WHDG to rebind the new data even though it was instructed to.