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

MVC Grid Hierarchy, detail grid with Autocomplete column

2 Answers 134 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jose
Top achievements
Rank 1
Jose asked on 12 Jul 2017, 02:31 PM

Hi, 

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 Answers, 1 is accepted

Sort by
0
Jose
Top achievements
Rank 1
answered on 12 Jul 2017, 02:51 PM

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

 

0
Preslav
Telerik team
answered on 14 Jul 2017, 12:48 PM
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:

Regards,
Preslav
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.
Tags
Grid
Asked by
Jose
Top achievements
Rank 1
Answers by
Jose
Top achievements
Rank 1
Preslav
Telerik team
Share this question
or