Remove AjaxSetting

4 posts, 0 answers
  1. eric
    eric avatar
    35 posts
    Member since:
    Mar 2009

    Posted 20 Jan 2011 Link to this post

    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)
  2. Iana Tsolova
    Iana Tsolova avatar
    3388 posts

    Posted 26 Jan 2011 Link to this post

    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,
    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.
  3. <span>w</span>
    <span>w</span> avatar
    84 posts
    Member since:
    Jun 2012

    Posted 10 Oct 2012 Link to this post

    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.AddAjaxSetting(RadAjaxManager1, drpType);
  4. Vasil
    Vasil avatar
    1604 posts

    Posted 11 Oct 2012 Link to this post

    Hi Waseem,

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

    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.
Back to Top