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

How do I Click Button On Page

1 Answer 23 Views
Window
This is a migrated thread and some comments may be shown as answers.
Officialboss
Top achievements
Rank 1
Officialboss asked on 23 Sep 2008, 07:09 PM
My main page is calling a window, a page loads in the RadWindow.

When I click a button in this window I want to fire the code behind event of a button on the main page(calling page).

How can I do this?

Thanks for any suggestions or sample code.

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 25 Sep 2008, 06:45 AM
Hi Howard,

The easiest way to do this is to set a JavaScript function on your parent page that gets a reference to the button and call its click() method. Then in the content page, you can call that JavaScript function by using either
top.myFunctionName()
or
GetRadWindow().BrowserWindow.myFunctionName()
(assuming that GetRadWindow() function is present in your content page)




Greetings,
Georgi Tunev
the Telerik team

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