Grid - Client binding (Client Mode)


  • City
CompanyName ContactName ContactTitle City

About this example


This demo shows DJME Grid using Ajax requests for paging, sorting, filtering and grouping.In this demo using the customers data of Northwind database that generate by EF.

The DJME Grid allows your data source action used for ServerBinding and ClientBinding.So we use Action same as "Server Binding" Example.
There are two differences from Server Binding:
  • You did not need to bind the Grid to Model in Client mode
  • Use ClientBind method to specified the Remote data source.

<%
   Ajax.Dna().Grid()
         .ClientBind(Url.Action("ClientBinding", "Grid"))
         .Columns(cols=>{
            //Binding the columns which need to display
            cols.Bound(m=>m.FieldNameHere);
            ...
         })
         .Pagable()
         .Sortable()
         .Render();
%>