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

Remove AjaxSetting

3 Answers 138 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
eric
Top achievements
Rank 1
eric asked on 21 Jan 2011, 03:22 AM
I am dynamically ajaxing controls but how can I remove the ajax from the control later on?  Is there a way I can query the ajaxmanager for a control id and remove all the ajax settings just for that control?

RadAjaxManager1.AjaxSettings.AddAjaxSetting(control1, control2)

3 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 26 Jan 2011, 10:08 AM
Hi eric,

The dynamic ajax settings are not persisted through postbacks. And that is why you need to add them on each postback. Therefore instead of trying to remove a setting you would better add it conditionally.

Best wishes,
Iana
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Waseem
Top achievements
Rank 1
answered on 10 Oct 2012, 08:22 PM
How to add Ajaxsetting in javascript as well as how to remove Ajaxsetting in javascript.

In C#, i know how to use it. but in javascript i have no idea.
  RadAjaxManager1.AjaxSettings.Clear();
  RadAjaxManager1.AjaxSettings.AddAjaxSetting(RadAjaxManager1, drpType);
0
Vasil
Telerik team
answered on 11 Oct 2012, 08:36 AM
Hi Waseem,

It is not supported functionality to changed the Ajax settings with JavaScript.

Greetings,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Ajax
Asked by
eric
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Waseem
Top achievements
Rank 1
Vasil
Telerik team
Share this question
or