I am trying to filter my grid with on a column that is bound to an array property. I have the column displaying as expected, however when i add the filterable option with multiselect it does not pull the options properly.
Here is my model that i am using.
public
class
CruiseGroupTile
{
//Other properties...
public
string
[] Destinations {
get
;
set
; }
}
Here is the asp.net mvc wrapper for displaying grid along with the client template method to display the array column correctly
@(Html.Kendo().Grid<
CruiseGroupTile
>()
.Name("grid")
.Columns(columns =>
{
//Other columns...
columns.Bound(m => m.Destinations).Filterable(filterable => filterable.Multi(true)).ClientTemplate("#= arrayToComma(Destinations) #");
})
.DataSource(dataSource => dataSource.Ajax().Read("GetCruiseGroups", "Home").PageSize(20).ServerOperation(false))
.Pageable()
.Filterable()
.Mobile()
)
function
arrayToComma(items) {
return
items.map(
function
(item) {
return
item;
})
.join(
','
);
}