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

ChildrenAsTriggers

3 Answers 59 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
MD
Top achievements
Rank 1
MD asked on 25 Aug 2009, 03:23 PM
I know RadAJAXManager uses updatepanels internally was wondering if there is an easier manner in which to set the ChildrenAsTriggers property other than programatically using the OnAjaxSettingCreated event?  Could there be property added to the AjaxUpdatedControl class?

Thanks
Matt

3 Answers, 1 is accepted

Sort by
0
BaiH
Top achievements
Rank 1
answered on 28 Aug 2009, 06:04 AM
Matt, I don't think there is any better way to set it. The OnAjaxSettingCreated works fine for me when I want to set something like that.
I'm not sure about the addition to the object but to me it sounds that there may be some side effects. Having in mind that we as users do not have control over how and if the update triggers will be set and used which will make the panel with ChildrenAsTriggers set to false useless.

--BH
0
MD
Top achievements
Rank 1
answered on 28 Aug 2009, 03:16 PM
The problem I have is I need this for use with UserControls and the event available is only for the RadAJAXManager and not on the RadAJAXManagerProxy, otherwise I would use the event.  I'm not sure why providing us easier access to this property would cause potential side effects.

Thanks
0
BaiH
Top achievements
Rank 1
answered on 31 Aug 2009, 09:55 AM
Actually you can use the RadAjaxManager.GetCurrent (similar to the ScriptManager) to get the page's current instance of RadAjaxManager. Then you need simple to hook to the event

RadAjaxManager.GetCurrent(Page).AjaxSettingCreated += new RadAjaxControl.AjaxSettingCreatedDelegate(AjaxSettingCreated);

--BH
Tags
Ajax
Asked by
MD
Top achievements
Rank 1
Answers by
BaiH
Top achievements
Rank 1
MD
Top achievements
Rank 1
Share this question
or