MVC Grid Hierarchy, detail grid with Autocomplete column

3 posts, 0 answers
  1. Jose
    Jose avatar
    4 posts
    Member since:
    Jan 2017

    Posted 12 Jul Link to this post


    I have created an ASP.NET MVC c# project and I have added two grids using the hierarchy option.  parent grid contains Orders Header records and child grid contains Orders details records, into grid child we need to use an telerik autocomplete mvc control here start the problem because is not working.  The two grids has been created using Razor syntax into the view, and the idea is create a CRUD into Parent Grid and into Child Grid, I mean when  you create a new header row (parent grid) you can add rows into child grid (master - detail behavior)

    Using Column.Bound() into child grid, I have tried to use the ".Template" and ".ClientTemplate" method and even EditorTemplateName (using other cshtml view) but is not working.  Please note the autocomplete control must be visible when you create a new record or edit old record in detail grid.


    What is the best way to do this task?


    Any help, many thanks.

  2. Jose
    Jose avatar
    4 posts
    Member since:
    Jan 2017

    Posted 12 Jul Link to this post

    Here an example about how I try to use the template. But is not working on edit and new row.


  3. Preslav
    Preslav avatar
    233 posts

    Posted 14 Jul Link to this post

    Hi Jose,

    Based on the provided information, I believe that your project requires a hierarchical editable grid. In the child grids, one of the columns should be edited with AutoComplete. Please, correct me if I am wrong.

    To achieve the above, I would suggest following the approach outlined in this article:
    And combining it with the "Editing custom editor" demo implementation:

    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top