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

Kendo UI Window - Modal Search Picklist

1 Answer 126 Views
Window
This is a migrated thread and some comments may be shown as answers.
EdsonF
Top achievements
Rank 2
EdsonF asked on 18 Jul 2014, 09:49 PM

Hi

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

Sort by
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.

http://docs.telerik.com/kendo-ui/getting-started/web/window/overview#using-iframes

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.

http://docs.telerik.com/kendo-ui/api/web/grid#events-change

http://docs.telerik.com/kendo-ui/api/web/grid#methods-select


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.

 
Tags
Window
Asked by
EdsonF
Top achievements
Rank 2
Answers by
Dimo
Telerik team
Share this question
or