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

Grid / ForeignKey column (conditional drop down list)

1 Answer 282 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ciprian
Top achievements
Rank 1
Ciprian asked on 26 Oct 2017, 03:23 PM

Hi,

We are looking to implement a grid. We have the dropdown element working, but we need the contents of it to be driven by another field in the grid.

Eg a "Type" would yield a list of "SubTypes" based on the "Type" selected.

 

An existing row would only show "SubTypes" based on the "Type" set, whilst with an addition, the "Type" would be required first, then the "SubType".

 

Is this functionality possible?

 

Thank you,

Ciprian

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 30 Oct 2017, 12:56 PM
Hello, Ciprian,

The described behavior sounds like cascading dropdowns, where the second dropdown will depend on the value of the first.

If this is correct, I can suggest checking the following examples:

https://docs.telerik.com/aspnet-mvc/helpers/grid/how-to/editing/grid-editing-cascading-dropdownlist

https://docs.telerik.com/aspnet-mvc/helpers/grid/how-to/editing/grid-incell-editing-cascading-dropdownlist

I hope this is helpful.

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular 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
Ciprian
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or