How to use cascading dropdown in kendo grid batch editing

6 posts, 0 answers
  1. Senthilkumar
    Senthilkumar avatar
    12 posts
    Member since:
    May 2015

    Posted 22 Jun 2015 Link to this post

    Hi Team,

    Please provide the sample code for kendo grid  cascading drop down using model. 

    And also please share, how to get the entire source(all rows of existing grid) of grid.

     

    Thanks

    Senthilkumar N

  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 25 Jun 2015 Link to this post

    Hello Senthilkumar,

    One cannot use cascading dropdowns during in cell editing mode because only one cell can be in edit mode at a time. This means that only one dropdown will be visible.

    We have a demo which shows how to use cascading dropdowns in inline and popup editing mode.

    One can get the entire data source of the grid by using its dataSource field. Have in mind though that it contains only the current page of data unless the ServerOperation option of the data source is set to false.

    Here is how to do that:

    @(Html.Kendo().Grid<MyModel>()
                 .Name("grid")
                /* other configuration */          
    )

    <script>
    var grid  = $("#grid").data("kendoGrid");
    var dataItems = grid.dataSource.data();
    </script>

    Regards,
    Atanas Korchev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Senthilkumar
    Senthilkumar avatar
    12 posts
    Member since:
    May 2015

    Posted 25 Jun 2015 in reply to Atanas Korchev Link to this post

    Thank you for response.

     But when we try to use inline edit grid, grid excepting us to save in database or session to maintain every row after update in grid row. 

     otherwise we facing below this issue "0x800a138f - JavaScript runtime error: Unable to get property 'uid' of undefined or null reference". but in batch editing this is possible. 

    So please provide some custom code to fix cascading drop down issue in batch editing. 

     

    Thanks 

    Senthilkumar N

  5. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 25 Jun 2015 Link to this post

    Hi,

    As I said in my previous response using cascading dropdownlists in batch editing mode isn't possible because only one cell is in edit mode at a time.

    Regards,
    Atanas Korchev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  6. Senthilkumar
    Senthilkumar avatar
    12 posts
    Member since:
    May 2015

    Posted 25 Jun 2015 in reply to Atanas Korchev Link to this post

    Hi 

    Here i found one sample for cascading drop down in In cell editing. Please confirm this is valid one.

    https://github.com/telerik/ui-for-aspnet-mvc-examples/blob/master/grid/grid-incell-editing-with-cascading-dropdownlist/KendoUIMVC5/Views/Home/Index.cshtml

     

  7. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 25 Jun 2015 Link to this post

    Hello,

    This project implements manual cascading. Again only one dropdownlist is visible at a time. It shows how to use the values of the other columns to filter the current dropdownlist. If this is what you need then yes this project is a valid one.

    Regards,
    Atanas Korchev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET MVC is VS 2017 Ready