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

passing values from radwindow back to parent page

1 Answer 153 Views
Window
This is a migrated thread and some comments may be shown as answers.
Dariusz Tomoń
Top achievements
Rank 1
Dariusz Tomoń asked on 02 Sep 2008, 01:46 PM
Hi,

My scenario is like follow:

I have a parent page with several controls - not declared but created dynamically from the code. The 3 most important controls are:

1)

protected

AutoCompleteExtender Ajax_Slowa_Kluczowe = new AutoCompleteExtender();

which is TextBox but "autocompleting"

2)

protected

LinkButton SSlowa = new LinkButton(); - this is link button wich will be used to open radwindow

3) RadWindow which contains RadGrid inside it. Rad grid contains names of keywords retrieved from database. The keywords are links. When I click on a keyword code behind should close the radwindow, release resources like radgrid and so on and finally pass argument (the text of the keyword) to Ajax_Slowa_Kluczowe.

I suppose that all the actions should be done in client programming

So the questions are:

a) how to invoke Radwindow (without postback)
b) how links inside radgid should look like?
c) how to close radwindow + pass text of link to Ajax_Slowa_Kluczowe (which is de facto textbox)

I'm beginner programmer so can you provide snippets of code? thank you.

Best Regards

Darek



1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 03 Sep 2008, 01:35 PM
Hello Dariusz,

I believe that the following demos will help you:

http://demos.telerik.com/aspnet/prometheus/Controls/Examples/Integration/GridAndWindow/DefaultCS.aspx?product=grid

http://demos.telerik.com/aspnet/prometheus/Window/Examples/DialogReturnValue/DefaultCS.aspx

Please check the code and use it as a base in your scenario. More information on the used approaches in these demos is available in the corresponding products' documentation.



Best wishes,
Georgi Tunev
the Telerik team

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