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

How to transfer a server-side data structure to a RadWindow

2 Answers 117 Views
Window
This is a migrated thread and some comments may be shown as answers.
Ed
Top achievements
Rank 1
Ed asked on 01 Aug 2008, 02:26 PM
Hi there,

What is the recommended way to pass server-side data structures to a RadWindow?  The tutorials seem to deal with the cases of a single string, integer etc. but not an object.  I have a DataSet that I need to pass to the pop-up window for further processing.

All answers gratefully received,

Ed Graham

2 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Tunev
Telerik team
answered on 04 Aug 2008, 12:52 PM
Hi Ed,

The idea behind the RadWindow control is to replace the standard browsers popup - it is simply a container that displays a page, different than the parent one. The communication between the parent and the content page is done by the common logic in such scenarios - you can send the argument with Javascript on the client, or if you want to pass the data from the parent to the content page, you can send the argument in the query string and read them on the server-side of the content page.

The approach that you should choose depends entirely on you - this task is not related to the RadWindow control. What I suggest is to implement your logic by using standard popup - window.open(). Once you have your code working as expected, that same approach will work with RadWindow as well.



All the best,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Ed
Top achievements
Rank 1
answered on 05 Aug 2008, 02:08 PM
Thanks for that, Georgi.  Given that it's a data-structure that I need to transfer, I don't think the query string will quite do the job and I'm also unsure of how to do it in Javascript.  I usually store things in Session variables in this sort of situation, so I'll do the same here.

Cheers,

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