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

Passing a value to a RadWindow that drives dynamic control population in the window

2 Answers 75 Views
Window
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 16 Aug 2008, 05:45 PM
I have a need to pass a value to a RadWindow that can be used by the aspx page being loaded within the RadWindow to determine what controls will be dynamically added to a placeholder control within the aspx page being loaded into the RadWindow.

I have no problem passing the value in, but it appears there is a timing issue... meaning, if I use the onload event of the html body of the aspx to call a javascript method that gets the argument from the window... it is already too late now to use that value in the code behind of the aspx page being loaded within the RadWindow.

Is it possible to get the argument from the RadWindow using serverside code within the aspx being loaded so that I can be sure to have the value available at the right time in the Page Life Cycle to use it?  ...or maybe there is some other solution?

Please advise.

Thanks!

Michael

2 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Tunev
Telerik team
answered on 18 Aug 2008, 11:29 AM
Hello Michael,

I would suggest to consider using the query string for that purpose. An example of this approach is shown here:
http://www.telerik.com/demos/aspnet/prometheus/Window/Examples/UsingURLForServerArguments/DefaultCS.aspx




Best wishes,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Michael
Top achievements
Rank 1
answered on 18 Aug 2008, 11:49 AM
Thanks!  I had found that posting last night and implemented it.  It worked perfectly.

Michael
Tags
Window
Asked by
Michael
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Michael
Top achievements
Rank 1
Share this question
or