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

[Solved] Need example Window and Grid (Prometheus)

3 Answers 198 Views
Window
This is a migrated thread and some comments may be shown as answers.
David Nowak
Top achievements
Rank 1
David Nowak asked on 24 Jan 2008, 09:21 PM
Can you please point me to an example of the RadWindow and RadGrid (both from the Prometheus collection) working together.

I want to select a row from the grid, and have the detail from that row appear in a window.  I have found examples that show how to do this from an ASP Gridview control, and from the Telerik ASP.NET controls, but not anything Prometheus specific.

Thank You,

David Nowak.

3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 25 Jan 2008, 11:20 AM
Hi David,

Please check the attached sample project that shows how to achieve the desired behavior. You can use the code as a base and extend it further to fit your requirements.



Greetings,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
David Nowak
Top achievements
Rank 1
answered on 25 Jan 2008, 06:01 PM
Georgi,

Thank you so much for the example.  This works perfectly, and I have it integrated into my own code now.

I have one more question--if I can . . .

Once the user closes the popup window, I want to refresh the data contained in the grid on the parent form.  In effect, I want to cause the server to cause the RadGrid_NeedDataSource event to fire.

Thanks again for your help,

David Nowak.
0
Georgi Tunev
Telerik team
answered on 28 Jan 2008, 09:39 AM
Hello David,

What you can do in this case is to hook to the OnClientClose event of the RadWindow and use the AjaxRequest client side method - you will need to wire AjaxRequest event server-side. You can find more details here.

Here is how to hook to the OnClientClose event:
function RowClick(sender, eventArgs) 
{         
    var MasterTableView = eventArgs.get_tableView();         
    var cell = MasterTableView.getCellByColumnUniqueName(MasterTableView.get_dataItems()[eventArgs.get_itemIndexHierarchical()], "CustomerID");              
     var oWnd = radopen("Details.aspx?CustomerID=" +cell.innerHTML,null); 
     oWnd.add_close(OnClientClose); 
} 
 
function OnClientClose(sender,args) 
{ 
    //your code here 
} 





Sincerely yours,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
David Nowak
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
David Nowak
Top achievements
Rank 1
Share this question
or