I am trying to encode what, in my opinion, is a pretty ordinary AJAX template using TreeViews and UpdatePanels. My situation is this:
I have a TreeView in UpdatePanel. I have Literal inside another UpdatePanel. When a user clicks on a node inside a TreeView, the contents of Literal are updated. Now, since all this is asynchronous, there is a temporary lag between clicking and updating Literal content. During this time, I would like to do two things:
1) Show UpdateProgress and
2) Clear Literal Content
This means that the user does not need to look at the old content while the new text is loaded asynchronously.
I cannot find an easy way to accomplish (2). I read client-side callbacks and used GetCallbackEventReference, but this seems like a very complex approach to what seems like a simple problem.
Ideally, I would like to leave TreeView on my own for it to work. I do not want to get the content myself and add them to the TreeView using JS. I just wanted to detect the client side node change event, clear Literal, and let TreeView continue its normal operation.
Is it possible? Or does a client call support my only option?
source share