If I use this as Datasource, searching is working:
.Datasource((IEnumerable<Mitarbeiter>)ViewBag.datasource2)
But I also want to Edit the Grid, so i changed it to:
.Datasource(ds=>ds.URL("Mitarbeiter/LoadData").CrudURL("Mitarbeiter/CrudUpdate").Adaptor(AdaptorType.UrlAdaptor)).AllowPaging()
Now i can not really search, because i have to pass dynamicly the search Columns to Entity Framework, what is not working.
Can I combine the Datasource Expression??? Like this:
.Datasource(ds=>ds.URL("Mitarbeiter/LoadData").CrudURL("Mitarbeiter/CrudUpdate").Adaptor(AdaptorType.UrlAdaptor)).AllowPaging().Datasource((IEnumerable<Mitarbeiter>)ViewBag.datasource2)
Thanks