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

How to use List in grid

2 Answers 274 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vlad
Top achievements
Rank 1
Vlad asked on 04 Mar 2021, 10:12 AM

I have class like 

<p>public class TestGrid{</p><
p>public string col {get;set}</p>
<p>public string col-first{get;set;}</p>
<p>List<Temp> temps {get;set;}</p>
<p>}</p>
<p></p>
<p>public class Temp{</p>
<p>public string Id{get;set;}</p>
<p>public bool IsIt{get;set;}</p>
<p>public bool DoesNeeded{get;set;}</p>
<p>}</p>

 

How to make Grid from TestGrid? 

How to filter by Temp-class column? 

2 Answers, 1 is accepted

Sort by
0
Vlad
Top achievements
Rank 1
answered on 04 Mar 2021, 10:12 AM
Sry, can't edit formatting. 
0
Tsvetomir
Telerik team
answered on 09 Mar 2021, 09:04 AM

Hi Vlad,

Indeed, when the grid is bound to a complex object, the filter menu and the filtering has to be handled explicitly. We have prepared a sample project demonstrating a very similar approach and you could find it in the following repository:

https://github.com/telerik/ui-for-aspnet-mvc-examples/tree/master/grid/grid-multiselect-filter

Let me know if additional details are needed.

 

Regards,
Tsvetomir
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Grid
Asked by
Vlad
Top achievements
Rank 1
Answers by
Vlad
Top achievements
Rank 1
Tsvetomir
Telerik team
Share this question
or