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

RadAjaxManager - events seem to fire inconsistently

1 Answer 34 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Arun
Top achievements
Rank 1
Arun asked on 02 Mar 2009, 04:02 PM

I have a RadAjaxManger defined in my page with the following configuration:

<telerik:RadAjaxManager ID="DefRadAjaxManager1" runat="server" >

 

 

<AjaxSettings>

 

 

    <telerik:AjaxSetting AjaxControlID="MMDRadTabStrip">

 

 

        <UpdatedControls>

 

 

            <telerik:AjaxUpdatedControl ControlID="MMDGrid" />

 

 

            <telerik:AjaxUpdatedControl ControlID="MMDRadTabStrip" />

 

 

        </UpdatedControls>

 

 

    </telerik:AjaxSetting>

 

 

</AjaxSettings>

 

 

</telerik:RadAjaxManager>

 

 

And then in the Page_Load event I added the setting for the the DatePicker since this was the only way to get the SelectedDateChanged event to fire.

 

 

RadAjaxManager manager = (RadAjaxManager)this.DefRadAjaxManager1;

 

manager.AjaxSettings.AddAjaxSetting(MMDDatePicker, MMDGrid,

null);

 

 

Currently changing the date on the datepicker is causing the TabClick event to fire on the RadTabStrip and vice-versa.

How can I set the update mode to be conditional (similar to UpdatePanel) for these 2 controls as they both update the RadGrid and I wouldn't want one to interfere with the other since otherwise NeedDataSource is being called multiple times ?

Thanks

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 05 Mar 2009, 10:57 AM
Hi Arun,

You can try handling the AjaxSettingsCreating/AjaxSettingsCreated event and set the UpdatePanel mode from there.

Find more about RadAjax server-side programming in the below resources:
http://www.telerik.com/help/aspnet-ajax/ajxsettingscreating.html
http://www.telerik.com/help/aspnet-ajax/ajxsettingscreated.html

Regards,
Iana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Ajax
Asked by
Arun
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or