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

Help with Array in GridView

1 Answer 70 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Emmanuel
Top achievements
Rank 1
Emmanuel asked on 14 Mar 2015, 12:21 AM
Hi, I have this data {make: "Toyota", model: "Prius", fuel: ["Petrol", "Electric"] } (JSON for simple view) and a want show it on GridView Fuel column, with both data (Petrol and Electric) and make filterable, showing that model in the petrol selection and in the electric selection.

Sorry about my English.

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 17 Mar 2015, 04:42 PM
Hello,

You can create a custom column or you can also check our online documentation on defining CellTemplate/CellEditTemplate for a reference.

As to the filtering, please note it is a data operation which means it is done by building and executing a LINQ query appending proper Where clause over the source collection. Please check our online documentation where the filtering is explained in details. If you have a custom content for the column, then you can consider specifying a proper FilterMemberPath to be filtered on.

Regards,
Dimitrina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
GridView
Asked by
Emmanuel
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or