This question is locked. New answers and comments are not allowed.
Hi,
In the Telerik MVC Grid, I want to bind one column to collection and each item in the collection has some properties and want to bind the column to one property.
For example:
Class Customer
{
string Name;
List<Address> AddressList;
}
Class Address
{
string Street1;
}
Now in my grid Address column, I want to display street1 information. How to do this using Client templates?
I've tried like below:
Thanks in advance
In the Telerik MVC Grid, I want to bind one column to collection and each item in the collection has some properties and want to bind the column to one property.
For example:
Class Customer
{
string Name;
List<Address> AddressList;
}
Class Address
{
string Street1;
}
Now in my grid Address column, I want to display street1 information. How to do this using Client templates?
I've tried like below:
columns.Bound(c => c.AddressList)
.ClientTemplate(
"<#= AddressList.AsQueryable().Select(al => al.Street1).ToString() #>"); It is not working.
Thanks in advance