I have a TabPanel that hosts 3 different types of albums (personal, etc.). Each album is a TreeGrid/Tree. When a user needs to add a photo to the album, they select an option from a Menu (right click context menu). This opens a Modal window, where the types in the photo caption and uploads the photo. I am setting canSubmit=True, and using submitForm instead of saveForm. I am also setting the target as an invisible iframe, where the result from the application (a javascript callback function) gets loaded and this callback function closes the modal window. All this works great.
My question is: At this point, how do I call a refresh on the Tree to show the newly added photo right away? Is it the datasource's refresh or something else?
b) I am also trying to understand how the TreeGrid/Tree (databound) caches the results and how do I clear that?
Thanks a lot in advance for your help.
My question is: At this point, how do I call a refresh on the Tree to show the newly added photo right away? Is it the datasource's refresh or something else?
b) I am also trying to understand how the TreeGrid/Tree (databound) caches the results and how do I clear that?
Thanks a lot in advance for your help.
Comment