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

How to refer control in parent page from Radwindow

1 Answer 263 Views
Window
This is a migrated thread and some comments may be shown as answers.
sathies
Top achievements
Rank 1
sathies asked on 18 Mar 2009, 12:35 PM

Hi,

    In a page i have a imagebutton and a grid, on clicking the button a popupwindow comes, in the codebehing(server side) of radwindow i want get the reference of the grid object .

Please help me in this regard...

regards
sathies

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 19 Mar 2009, 03:17 PM
Hi Sathies,

Since the content page of the RadWindow and the parent page are different documents the only way to achieve communication between them is to use javascript. What you can do yin your case is the following:

  1. Implement a javascript function in the RadWindow's content page which references the main page and calls a javascript function which is defined there and manipulates the grid (it can manipulate the grid on the client or perform a postback or ajax request from the client to the server). The following demos are demonstrating this approach:

    http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window
    http://demos.telerik.com/aspnet-ajax/window/examples/dialogreturnvalue/defaultcs.aspx
  2. In the desired server event of the RadWindow content page execute the script declared in 1 from the server.
Sincerely yours,
Svetlina
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
sathies
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or