Adding OnRequestStart OnRequestEnd in Dynamic User Controls

2 posts, 0 answers
  1. Axe
    Axe avatar
    88 posts
    Member since:
    Feb 2007

    Posted 15 Aug 2008 Link to this post

    I have an aspx page which dynamically loads user controls via client ajax call (.ajaxRequest(argument)). On one of the user controls in an upload control which needs full postback. I can successfully add client function to kill ajax request from user control for full postback and everything works as expected however once you load another control I get javascript error. I tried ways of removing the function on other pages, well actually the server side event AjaxRequest on aspx page.
    As a work around I have to add the OnRequestStart & OnResponseEnd on the aspx page and check which page and only cancel ajax if that page and it works fine but is there a better way?

    Request(sender, args)
        //alert('Request start initiated by: ' + args.get_eventTarget());
        if (args.get_eventTarget() == "ControlsAddTrackControl$btnTrkFleUload")


  2. Plamen Peshev
    Plamen Peshev avatar
    886 posts

    Posted 15 Aug 2008 Link to this post

    Hello Axe,

    By default the AJAX Panel ajaxifies all controls placed inside. If you want to exclude a control from ajaxifying you can use one of the following approaches: Exclude controls from ajaxifying

    All the best,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top