This is a migrated thread and some comments may be shown as answers.

[Solved] Javascript, treeview, ajaxmanager: How should I?

1 Answer 103 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 17 Apr 2009, 03:02 PM
Dear all,

I am still learning both Ajax and Telerik so I may ask "stupid" questions...
Basically, we have a treeview on a form and want to trigger some update in the tree on the server side and see it reflected on the front end when the job is finished.

I initially implemented this in a "slightly home made" manner as follows:
  • my tree view was in a Ajax update panel
  • A hidden button was defined as a trigger for that panel
  • A javascript function was setting a couple of variables in hidden fields and then calling the Submit() on the button

It worked fine but I am trying to do this in a more "Ajax/Telerik" way.

My cuning plan is

  • My tree view is managed via a AjaxManagerProxy
  • A popup window gathers some details required for the update and calls a javascript callback function on close
  • the javascript function calls ajaxRequest(...) through RadAjaxManager.GetCurrent(Page).ClientID

So far everything works fine but I can't work out how to make sure the TreeView modifications are reflected on the client side because I can't work out how to express that the Treeview on the client must be updated when this javascript function fires...
I was hoping I would see AjaxManager(Proxy) itself in the controls "that will initiate Ajax Requests" in the AjaxManagerProxy configuration but nop!

Could someone tell me what I am missing?

Of course, I could re-use my hidden button but I was hoping for something more sophisticated...

Regards


Eric

PS: I forgot to mention that I have several content panes in that page

1 Answer, 1 is accepted

Sort by
0
Eric
Top achievements
Rank 1
answered on 17 Apr 2009, 03:32 PM
Hum, I may have found a way...
In the master page, I configured the AjaxManager to update the entire ContentHolder used in my actual page.

Not sure whether it is possible to be more precise as to the exact control within the ContentHolder...

Anyway, that will do for the time being.

Thanks


Eric
Tags
Ajax
Asked by
Eric
Top achievements
Rank 1
Answers by
Eric
Top achievements
Rank 1
Share this question
or