Refresh/Rebind RadTreeList on RadWindow close

2 posts, 1 answers
  1. Felice
    Felice avatar
    198 posts
    Member since:
    Aug 2013

    Posted 30 Dec 2014 Link to this post

    I have a RadTreeList on a page and on the same page I open a Radwindow.
    When the user has completed the task in the RadWindow, on button_click the DB is updated and the Radwindow is closed calling the funcion CloseWindow().

    This is how I close the RadWindow from the inside the RadWindow:
    <script type="text/javascript">
            function GetRadWindow() {
                var oWnd = null;
                if (window.radWindow) oWnd = window.radWindow;
                else if (window.frameElement.radWindow) oWnd = window.frameElement.radWindow;
                return oWnd;
            function CloseWindow() {
                var oWnd = GetRadWindow();

    After the RadWindow is closed I need to rebind/refresh the RadTreeList which is on the parent page of the RadWindow.
    How can I achieve that without using Ajax?

    Thanks for supporting
  2. Answer
    Angel Petrov
    Angel Petrov avatar
    1075 posts

    Posted 05 Jan 2015 Link to this post

    Hi Felice,

    If you are able to obtain a reference to the RadTreeList client object yo can do something like this.

    function rebindTreeList() {
                    var treeList = $telerik.findControl(document, "RadTreeList1");

    Bear in mind however that the above action will trigger a full postback. If refreshing the entire page is not desirable you can fire an AJAX request instead. Additionally keep in mind that rebinding the control solely on the client is not possible as it populates on the server.

    Angel Petrov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top