Bind to nested indexed properties

1 Answer 159 Views
Grid
Claudio
Top achievements
Rank 2
Bronze
Bronze
Iron
Claudio asked on 01 Mar 2023, 10:53 AM

I need to bind a complex object to telerik grid field, i read the article

https://docs.telerik.com/blazor-ui/knowledge-base/grid-bind-navigation-property-complex-object

but it not explain if i can bind an indexed property.

For example i need this bind:

<GridColumn Field="Property.NestedProperty[0].Value" />

but it seem not working.

Can be binded indexed properties?

Thanks

1 Answer, 1 is accepted

Sort by
-1
Tsvetomir
Telerik team
answered on 03 Mar 2023, 10:18 AM

Hi Claudio,

In addition to the article that you have linked, you can find additional information on columns binding here:

https://docs.telerik.com/blazor-ui/components/grid/columns/bound#notes

Note that if your NestedProperty is a type of IDictionary, List, and Array, you might encounter an error and such a setup is not supported.

I hope you find this helpful.

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/.

Claudio
Top achievements
Rank 2
Bronze
Bronze
Iron
commented on 03 Mar 2023, 10:35 AM

Thanks, i solved using a column template
Tags
Grid
Asked by
Claudio
Top achievements
Rank 2
Bronze
Bronze
Iron
Answers by
Tsvetomir
Telerik team
Share this question
or