refresh the radAJAX panel on closing of radwindow

2 posts, 0 answers
  1. Nannu
    Nannu avatar
    7 posts
    Member since:
    Dec 2006

    Posted 11 Aug 2011 Link to this post

    Hi,
    Im new to telerik control, One of the requirement we got is to open  a radWindow , radwindow is present inside radAjaxpanel.
    RadWindow should  be open up on Click of html button.Im successfully till that part, Now radwindow contains a treeview aong with ASO.NET button "OK" and cancel html button. On Click of Cancel radwindow as to close and dont refresh parent radajaxpanel. When the user clicks on "OK" server side functionality to performed and update the parent radajax panel. Can anytell me how to perform

    I tried adding javascript 

     function OnClientClose()
    {
        $find("<%=radPanel.ClientID%>").ajaxRequest("Rebind");
    }

    In the radAJAXPANEL  i added OnAjaxRequest but nothing is working
    -Mahender
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 15 Aug 2011 Link to this post

    Hello Mahender,

    The RadWindow's content is moved in the DOM and the update panels use the innerHTML property to work, thus they often cannot find the content they need to update if the entire RadWindow is placed in an update panel. If you are loading an entire page in the RadWindow you can use AJAX in ti separately from the main page and you would not need the ajax panel in the first place. If you need to modify some settings of the RadWIndow you can do so via its client-side API. If you are using the ContentTemplate I would advise that you place the ajax panel directly inside it, so that it wraps only the contents of the RadWindow, not the entire RadWindow. Also, please make sure that the controls you change in the code-behind are actually updated on the client, as if they are outside of the RadAjaxPanel the change would not be reflected on the client, and this is a probable cause why it would seem that the event is not fired.

    If you are still experiancing difficulties please open a support ticket and send us a runnable project that isolates this behavior so we can investigate it.

    Greetings,
    Marin
    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. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top