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

Refreshing a Custom control in Radgrid after closing RadWindow

1 Answer 48 Views
Window
This is a migrated thread and some comments may be shown as answers.
Liza
Top achievements
Rank 1
Liza asked on 16 Feb 2009, 10:24 PM
Hi! This is my question: How can I refresh a radGrid after closing a radWindow?
This is what I'm doing:
I have a masterpage in here a call a page that contains a RadGrid and I'm using Custom Controls in the EditForm.
In this particular custom control I'm calling a radWindow (I create this radWindow from the button click event in code behind and the radWindow is on a RadWindowManager) after I cliked a button, when the radWindow shows up I display another RadGrid, so the user can select a row and clicks a button that should close the radWindow and return the selected value into a Textbox localize into the Custom Control.
My questions are this:
How can I close the radWindow after clicking a button from the code behind? Can I do this from the code behind or I have to do it from the client-side?
How can I return the selected value into the textbox and refreshing the radGrid?

I'd thank you if can you help me, this is kind of urgent .

Thanks, 
Liza

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 17 Feb 2009, 04:16 PM
Hello Liza,

I believe these demos will be of help:
Returning Values From a Dialog
Window Editing

For your convenience I attached to this thread the code for the second demo that shows how to close RadWindow from codebehind and to update the grid on the parent page.


All the best,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Window
Asked by
Liza
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or