mm199
1
In the following cases,
<RadzenDataGrid Data="@data" TItem="All" >
<RadzenDataGridColumn TItem="@All" Filterable="false" Title="@title" / >
public class All
{
public List<string> aaa { get; set; } = new();
}
public class aaa
{
public name { get; set; } ;
}
What should I do if I want to set aaa's name to RadzenDataGridColumn's Property?
enchev
2
You can use Template to access your data item properties:
<Template>
@string.Join(",", context.aaa.Select(i => i.name))
</Template>
mm199
3
Thank you.
Please tell me a little more. needed a little modification.
public class All
{
public List<aaa> aaaList { get; set; } = new();
}
public class aaa
{
public name { get; set; } ;
}
What should I do if I want to enumerate name of aaa into one column instead of string.Join?
enchev
4
The approach in my reply is the only way to show such data. - using a template.
mm199
5
Thank you.
I'm sorry, but I would like some more help.
I want to do it like this, but I don't know how to use template.
Please help me.
enchev
6
You can check my first reply to know how to access your collection property from the template context.
mm199
7
thank you.
I will use it as a reference.