This is a migrated thread and some comments may be shown as answers.

On clientclose of RadWindow

1 Answer 27 Views
Window
This is a migrated thread and some comments may be shown as answers.
Debashis Pyne
Top achievements
Rank 1
Debashis Pyne asked on 02 Jul 2010, 11:06 AM

Hi,

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()
{
 $get("grdActionList").Rebind();
}

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.

Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 02 Jul 2010, 12:04 PM
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.

-Shinu.
Tags
Window
Asked by
Debashis Pyne
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or