Hi,
I am using MVC Kendo (2013.1.319.340) with MVC 4 under dot.net 4.5. LLBLGen is the O/R Mapper in version 3.5. LLBLGen Pro to Linq is used (not EF or LinqToSQL).
Binding a Kendo MVC Grid using
Server Binding, sort/filter/group/page work fine. Controller code is as follows:
public
ActionResult Index()
{
LinqMetaData metaData =
new
LinqMetaData(_adapter);
return
View(metaData.Mandant);
}
metaData.Mandant returns an IQueryable provided by LLBLGen.
When I try the same access using
Ajax Binding, only Paging information is transformed properly to the IQueryable provider. Controller code is
public
ActionResult Query(DataSourceRequest request)
{
return
Json(_db.GetMandant().ToDataSourceResult(request, entity =>
new
{
entity.AktualisiertAm,
entity.AktualisiertVon
}), JsonRequestBehavior.AllowGet);
}
Here only paging information is actually applied in the query emitted by LLBLGen. Filter/Sort/Group settings are not being applied to the query at hand.
Here is an older thread that seems to point to a similar issue (
http://www.telerik.com/community/forums/aspnet-mvc/grid/sorting-with-llblgen-linqmetadata.aspx). The lnk to the solution suggested (
http://www.telerik.com/community/forums/aspnet-mvc/general/datetime-sorting-problem.aspx) is no longer valid.
Thank you for your help on this isse!