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

Using <asp:hidden> fields on RadWindows

2 Answers 74 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David Robbins
Top achievements
Rank 1
David Robbins asked on 14 Oct 2008, 12:38 AM
Are the <asp:hidden> fields I have assigned to asp.net form inaccessible when I load that window as a child window with RadWindowManager?

When loaded on its own, my form can access the hidden fields using the getElementById() method.  However, when the form is launched as a Popup window with RadWindowsManager null is returned when the same script is executed.  Is this an ASP.Net issue, or do I need to do something differently clientside, such as obtain the RadWindow first via the API.  Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 15 Oct 2008, 02:09 PM
Hi David,

The RadWindow is actually an IFRAME element and you should work with it as with such. This being said, if you want to access any controls which are placed in a RadWindow's content page from the main page you should first reference the window object of the content page, e.g.

function CallFn()  
{  
  var oWnd = GetRadWindowManager().getWindowByName( "RadWindow1");  
  oWnd.get_contentFrame().contentWindow.CalledFn();  
}    

where this function is placed on the main page and the CalledFn is on the RadWindow's content page. You can find a more detailed information about this here.


Greetings,
Svetlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Vinil Kumar
Top achievements
Rank 1
answered on 19 Oct 2011, 08:39 PM
   
Tags
General Discussions
Asked by
David Robbins
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Vinil Kumar
Top achievements
Rank 1
Share this question
or