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

Iterate through controls created by AjaxManager

2 Answers 52 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Daniel Cai
Top achievements
Rank 1
Daniel Cai asked on 17 Jul 2008, 06:05 PM
I am wondering if there is any way to iterate through all the controls created by Ajax call using server code. I need to go through them and add attributes to those controls.

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Sebastian
Telerik team
answered on 21 Jul 2008, 10:55 AM
Hello Daniel,

My suggestion is to use ArrayList/HashTable or other collection/dictionary to store the ids of the initiator and updated controls valid for a particular ajax manager setting. This can be done intercepting the AjaxSettingCreated event of RadAjaxManager.

Thus later, inside the corresponding event handler, you will be able to determine the updated controls for a given ajax setting and perform some custom operation over this set of controls only.

For your further convenience I am attaching a sample web site which illustrates the approach.

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Daniel Cai
Top achievements
Rank 1
answered on 22 Jul 2008, 10:57 PM
Thanks, that's exactly what I want...
Tags
Ajax
Asked by
Daniel Cai
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Daniel Cai
Top achievements
Rank 1
Share this question
or