I need to create a search modal window that allows me to
type a search criteria, display the results on a grid, allow the user
select a row from that grid and then pass the Id of the select row back
to parent window.
I'm using MVC5 and Kendo UI.
What's the best way to achieve this?
1 Answer, 1 is accepted
0
Dimo
Telerik team
answered on 22 Jul 2014, 11:49 AM
Hello Edson,
I will assume that you are using the Window's MVC wrapper. Please clarify if you are using Javascript Window initialization.
Generally, if you are using an iframe for the Window, then you need to access the parent page's script context in order to pass values to the parent page. This is possible only if the main page and iframe page belong to the same domain.
If you are not using an iframe, then there is nothing special in passing the value, because the main page and the Window content belong to the same script context.
The selected Grid row(s) can be retrieved in the widget's change event and/or by using the select method.
On a side note, please avoid posting duplicate forum threads and support tickets.
Regards,
Dimo
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.