after radwindow client close

4 posts, 0 answers
  1. fifi
    fifi avatar
    2 posts
    Member since:
    Jan 2009

    Posted 13 Oct 2009 Link to this post

    hi,
    i use a radwindow and a radgrid in a usercontrol.after radwindow clientclose,
    $find("<%= RadGrid1.ClientID %>")
    and
    $find("<%= RadAjaxManager1.ClientID %>") return null.
    i add usercontrol to the page in runtime using loadcontrol.
    what should i do?
    thanks
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 13 Oct 2009 Link to this post

    Hello fifi,

    I believe that the following documentation topic will be of help:
    http://www.telerik.com/help/aspnet-ajax/ajxusercontrols.html


    Sincerely yours,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. fifi
    fifi avatar
    2 posts
    Member since:
    Jan 2009

    Posted 17 Oct 2009 Link to this post

    hello,
    thanks for your reply.
    i have a RadAjaxManager in usercontrol and for first opening window every thing is ok. after window client close new recoed added to grid but for next time $find("<%= RadAjaxManager1.ClientID %>") and $find("<%= RadGrid1.ClientID %>") return null.
    i want update grid by RadAjaxManager.ajaxRequest();
    thhanks a lot
  4. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 19 Oct 2009 Link to this post

    Hello fifi,

    Placing RadAjaxManager inside user control is not recommended practice - instead consider using RadAjaxManagerProxy and utilize the GetCurrent(page) static method of the ajax manager to locate the manager's client instance on the main page. This online demo illustrates the usage of RadAjaxManagerProxy control in main page/user control scenario:

    http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/usercontrol/defaultcs.aspx

    Alternatively, consider the approach with dynamic ajax settings suggested by my colleague Georgi.

    Best regards,
    Sebastian
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top