Hi.
I'm having a problem with the filter on a ForeignKey column.
The first time I select a status in the dropdown in the filter menu and click the "Filter" button, nothing happens, but if I change the status and click filter again, it filters as it is supposed to.
Also if I select one status without clicking the "Filter" button, then selects a new status and then clicks the "Filter" button, it filters works.
Got any tip that can help me with this? I have updated to the lates build.
The code:
I'm having a problem with the filter on a ForeignKey column.
The first time I select a status in the dropdown in the filter menu and click the "Filter" button, nothing happens, but if I change the status and click filter again, it filters as it is supposed to.
Also if I select one status without clicking the "Filter" button, then selects a new status and then clicks the "Filter" button, it filters works.
Got any tip that can help me with this? I have updated to the lates build.
The code:
<div
class
=
"col-lg-12"
>
@(Html.Kendo().Grid<Order>()
.Name(
"orderGrid"
)
.Columns(columns =>
{
columns.Bound(order => order.OrderNo).Title(
"Order no."
);
columns.ForeignKey(order => order.Status.Description, Model.StatusList,
"Description"
,
"Description"
).Title(
"Status"
);
}
)
.Filterable(filter => filter.Enabled(
true
).Mode(GridFilterMode.Menu))
.AutoBind(
true
)
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action(
"GetOrders"
,
"OrderSurface"
))
)
)
</div>