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

[Solved] Passing values of selected items in pop up windows in mvc

1 Answer 124 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Howard
Top achievements
Rank 1
Howard asked on 06 Dec 2011, 04:23 AM
Hi!

I want to create pop up windows with list box in the window for the multiple selection of the list items.

Do anybody have any idea how do pass multiple selected values to the main screen from the pop up windows in MVC?

I had done in ASP.NET but not sure how in MVC ?

Any idea plz?

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 08 Dec 2011, 11:14 AM
Hi Niroj,

It depends -- if you are loading a partial view in the window, passing data is very easy, as both the window content and the page are the same document -- so any global function or variable is accessible. If you are loading the content of the window in an iframe, you need to (a) have the content on the same domain, due to the same-origin scripting policy, and (b) pass the data to the parent window (i.e. the page that opened the iframe) by using the window.parent object.

Greetings,
Alex Gyoshev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Tags
General Discussions
Asked by
Howard
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or