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

Closing Radwindow and refreshing a usercontrol

3 Answers 110 Views
Window
This is a migrated thread and some comments may be shown as answers.
Pooja
Top achievements
Rank 1
Pooja asked on 12 Oct 2011, 08:21 PM
Hi,

I have read various posts related to this topic but not found the exact solution to what I am looking for.

I have a parent page which has a User Control on it. The usercontrol has a Radgrid which has a linkbutton on it. The linkbutton is used to open a Radwindow where I edit the details of the record. When I click on a button on the Radwindow, I want the Radwindow to close and refresh the grid.

Note that the Grid is in a user control and not a page.

If i use

GetRadWindow().BrowserWindow.refreshGrid(args);

it returns a error saying "BrowserWindow is null or not an object".

Please help

3 Answers, 1 is accepted

Sort by
0
Accepted
Stuart Hemming
Top achievements
Rank 2
answered on 12 Oct 2011, 11:34 PM
Pooja,

Forgive me if I've misunderstood, but what I think you're saying is that the Grid is in a UserControl on the parent page and that when a RadWindow closes, you want to force an refresh of the Grid.

If I've got that right, then this is what I'd do in your case.

First, I'd wire-up the RadWindow's OnClientClose event.

Then, in the function called by that that event, I'd call an AjaxRequest that, in the code-behind forced an update of my grid.

There are, prolly, a number of ways you can achieve your ends, but this is how I'd do it.

Hope this helps.

-- 
Stuart
0
Pooja
Top achievements
Rank 1
answered on 13 Oct 2011, 03:51 PM
Hi Stuart,

Thanks a lot for your reply. I guess sometimes we tend to overlook how simple it can be.... Thank u so much!!
0
Stuart Hemming
Top achievements
Rank 2
answered on 13 Oct 2011, 03:56 PM
No Worries.

Don't forget to mark my reply as the Answer.

-- 
Stuart
Tags
Window
Asked by
Pooja
Top achievements
Rank 1
Answers by
Stuart Hemming
Top achievements
Rank 2
Pooja
Top achievements
Rank 1
Share this question
or