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

RadWindow & Framset

1 Answer 76 Views
Window
This is a migrated thread and some comments may be shown as answers.
umut
Top achievements
Rank 1
umut asked on 05 Feb 2009, 09:33 AM
Hi,

I have a website with frameset ( not  iframe) . ( leftmenu, topmenu, content frame....)

with the selection from the left menu, some aspx pages load in content frame.
Here is my problem, I open radwindow from the .aspx page in the content frame in which i have a radgrid. When i close the radwindow,
i want the radgrid to be refreshed.

İ have the necessary js function, on my aspx page, and i use

GetRadWindow().BrowserWindow.refreshGrid();  while closing radwindow. But GetRadWindow().BrowserWindow returns the frameset page, not the content frame.

How can i access to the content page ???


1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 05 Feb 2009, 12:26 PM
Hello umut,

This issue is not related to the RadWindow control - RadWindow is yet another IFRAME. You need to get out of that IFRAME and then get access to one of the panes in the frameset. For example you can get to the topmost page by using top.
e.g.
top.frames[0].refreshGrid()

More information on how to access JavaScript functions in different frames in a frameset is available in many places in the Net. For example you can check the following resources:
http://www.tjkdesign.com/articles/frames/4.asp
http://www.webdeveloper.com/forum/archive/index.php/t-79681.html
http://www.quirksmode.org/js/frameintro.html

Sincerely yours,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
umut
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or