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

[Solved] How to pass data on client side (cshtml) to a model window

1 Answer 119 Views
Window
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Narayanarao
Top achievements
Rank 1
Narayanarao asked on 27 Dec 2011, 11:20 AM
Hi ,

I have a model window that i invoke on click of a button using the scripts. I want to pass certain parameters to model windowthat will facilitate the same. could you please help

currently i use  "
 $('#NewContactWindow').data('tWindow').center().open();
 "

Thanks,
Anand

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 27 Dec 2011, 03:14 PM
Hi Anand,

It is not clear whether the Window content is retrieved as a partial view, a complete external page, or it is static and hard-coded.

If it is retrieved as a partial view or a complete page, you can set some query string parameters that will be handled server-side. Modify the Window's contentUrl property before calling refresh() or ajaxRequest().

All the best,
Dimo
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
Window
Asked by
Narayanarao
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or