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

How to read pass data from pageload

4 Answers 125 Views
Window
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 11 Nov 2008, 04:11 AM
hi,

I call the rad window dialog and pass the data to dialog page. I can show the data in text box using javascript function.

Actually what i want to do is that bind the grid base on passed parameter.

Please let me know how to do it.

Thanks,
Alex

4 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 11 Nov 2008, 11:04 AM
Hi Alex,

You can do this by passing the needed argument in the query string and to read it on the content page from the server. Please check the following links that shows how to do this:

Using RadWindow URL to supply server arguments
Providing arguments to a page in RadWindow by using URL query string.

Thanks,
Princy.
0
Alex
Top achievements
Rank 1
answered on 11 Nov 2008, 04:38 PM

Hi Princy,

 

Thanks you for link. I have tried the same way but my dialog is only appeared few second then disapperaed. Do I need to enabled any option?

 

I also try the another ReturnDialog example. I have pass the url in NevigationURL="Dialog.aspx" property of window. This one is working for me but i can't pass the parameter to dialog.

Thanks,
Alex

0
Accepted
Georgi Tunev
Telerik team
answered on 12 Nov 2008, 03:26 PM
Hello Alex,

Have you canceled the postback? This is the most probable reason for the first problem - note the ItemTemplate in the demo:
<ItemTemplate> 
    <href="#" onclick="openRadWindow('<%#DataBinder.Eval(Container.DataItem,"CustomerID")%>'); return false;"
Details</a></ItemTemplate


Greetings,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Alex
Top achievements
Rank 1
answered on 13 Nov 2008, 03:49 PM

Hi Georgi,

 

Thanks. It is working.

 

Alex

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