Grid - Filtering (Client mode)


About this example


This demo shows the filtering feature of the DJME Grid. To enable filtering please use the Filterable() method:

<%
   Ajax.Dna().Grid()
         .ClientBind(Url.Action("ClientBinding", "Grid"))
         .Filterable()
         .Render();
%>
Or you can also set the filters on grid init.

<%
   Ajax.Dna().Grid()
         .ClientBind(Url.Action("ClientBinding", "Grid"))
         ...
         
          .Filterable(cols=>{
              cols.Add(m => m.CompanyName).StartsWith("B");
              cols.Add(m => m.ContactTitle).Neq("Owner");
         })
         .Render();
%>