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

Make grid sortable and filterable which has custom fields

1 Answer 149 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dhaval
Top achievements
Rank 1
Dhaval asked on 07 Jun 2013, 08:34 AM
I have grid which editable in cell
I have some custom fields which has combobox when i edit that perticular field.
When i sort grid on this feild it does not get sorted.
Similar for filter, when I use filter on these custom fields, It gives me errors.
How can I make grid sortable and filterable that has custom fields as column?

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 11 Jun 2013, 07:40 AM
Hello Dhaval,

Such problem is likely to occur when the column does not have a field, or when the field is an object. Generally speaking the DataSource does not support complex data structures - objects/array field values.

In order to use the filter/sort functionality you should bind the column to a field of primitive data type - string, number, boolean or date. In order to demonstrate the approach I modified this demo. Please check this sample: http://jsbin.com/unapef/3/edit

I hope this will help.

Regards,
Alexander Valchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Dhaval
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or