I have a Kendo grid that is pulling 100,000s of records.
If the .ServerOperation(false) Kendo does not load any data.
If I set it to .ServerOperation(true) it will load the data however the search filters do not work.
What am I missing?
Is there a way to use .ServerOperation(false) with 100,000ss of records?
<
div
class
=
"grid"
>
@(Html.Kendo().Grid<
BusinessApplication.DTO.DTOMemberGrid
>().Name("grid")
.Columns(col =>
{
col.Bound(m => m.MemberID).ClientTemplate("<
a
href
=
'/members/view/#=MemberID#'
class
=
'block'
>#=MemberID#</
a
>").Width(100).Title("ID");
col.Bound(m => m.PersonsTitle).Width(100).Title("Title");
col.Bound(m => m.FirstName);
col.Bound(m => m.LastName);
col.Bound(m => m.JobTitle);
col.Command(command => command.Custom("View")
.Click("EditItem"))
.Width(100)
.Title("View")
.HtmlAttributes(new { @class = "k-grid-details text-center", title = "View" })
.HeaderHtmlAttributes(new { title = "View" });
})
// Source & configuration
.DataSource(src => src
.Ajax()
.PageSize(10)
.ServerOperation(true)
.Sort(sort => sort.Add("MemberID").Descending())
.Read(read => read.Action("GetMembersGridItems", "Members")))
.AutoBind(true)
.Sortable()
.Resizable(resize => resize.Columns(true))
.ColumnMenu()
.Scrollable(s => s.Height("auto"))
.Pageable(pageable => pageable
.Refresh(true)
.PageSizes(new[] { 10, 50, 100, 500 })
.ButtonCount(10))
.Filterable(filter => filter
.Operators(op => op.ForDate(date => date
.Clear()
.IsGreaterThanOrEqualTo("Is after or equal to")
.IsLessThanOrEqualTo("Is before or equal to"))))
.Reorderable(reorder => reorder.Columns(true))
)
</
div
>
Thanks
Tom