Kendo UI Window - Modal Search Picklist

2 posts, 0 answers
  1. EdsonF
    EdsonF avatar
    4 posts
    Member since:
    Nov 2012

    Posted 18 Jul 2014 Link to this post


    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?
  2. Dimo
    Admin
    Dimo avatar
    8330 posts

    Posted 22 Jul 2014 Link to this post

    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.

     
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top