On clientclose of RadWindow

2 posts, 1 answers
  1. Debashis Pyne
    Debashis Pyne avatar
    66 posts
    Member since:
    Apr 2010

    Posted 02 Jul 2010 Link to this post


    I have a Radgrid name grdActionList displaying data records.
    I have a buttton as BtnAdd which, when clicked, opens a RadWindow which in turn has a NavigateUrl property set to AddData.aspx.
    The AddData.aspx has a few textboxes and a "Add records" button named BtnAddRecords.
    When the BtnAddRecords is clicked, the data from the textfields are stored in the DB and the RadWindow is closed.

    How can I:

    1. After the RadWindow is closed, the RadGrid is refresh / rebind.
    2. All a message is displayed in the label just above the radgrid.


    I have written a JS in the base page as to refresh the radgrid:

    function OnClientClose()

    I have defined the RadWindow as:

    <telerik:RadWindow ID="Window1" runat="server" EnableViewState="false" NavigateUrl="ActionPopup.aspx" Modal="true" Animation="Fade" VisibleStatusbar="false" Title="Manage Action" OnClientClose="OnClientClose" Behaviors="Close"></telerik:RadWindow>

    This doesnot work!

    Please help.


  2. Answer
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 02 Jul 2010 Link to this post

    Hello Debashis,

    A better approach is invoking an ajaxRequest() from client side to rebind the grid. Check out the forum which illustrates more on same kind of scenario.
    Close window on button click

    Also go through the demo on Window Editing which might help in this.

Back to Top