Hi Henryk,
Thank you for your interest in Syncfusion products.
Our Essential Grid have been revamped to provide an enhanced support to extensive client side functionality. Due
to revamping the QueryCellInfo event is removed from GridPropertyModel. Instead of the QueryCellInfo we can
achieve the formatting data through Format API & CssClass API in view.
Format API in Grid provides you a support for formatting your column data. In this format we can do all the
string formatting.
Css API in Grid Provides you a support for adding css class to GridColumn.
Syntax: Format
column.Add(ColumnMapping).Format("format option");
Syntax: CssClass
column.Add(ColumnMapping).CssClass("CssClassName");
Refer the below code snippet, which illustrates this.
<%=Html.Grid
("Grid1", "GridModel", column => {
column.Add(c => c.CustomerID).HeaderText("CustomerID").Format("ID : {CustomerID}");
column.Add(c => c.EmployeeID).HeaderText("Employee ID");
column.Add(c => c.OrderID).HeaderText("Order ID");
column.Add(c => c.OrderDate).HeaderText("Order Date").Format("{OrderDate:MM/dd/yy}");
column.Add(c => c.ShipCity).HeaderText("ShipCity").CssClass("CustomData");
column.Add(c => c.ShipCountry).HeaderText("ShipCountry");
})%>
Note : RegisterClientResourceManager has been updated by RegisterStaticResources. We suggest to you use
RegisterStaticResource to work in new MVC Grid.
Add the Resource Manager to the Site.Master page under the tag as follows.
.....
<%=Html.RegisterStaticResources() %>
Please refer the sample from the below link
http://files.syncfusion.com/support/grid_mvc/Incidents/v7.4.0.20/F91286/MVC_GridSample.zip
We would also suggest you to refer the below documentation link for more details.
http://help.syncfusion.com/ug_74/GridMVC/defaultMVC.html
Please let me know if you have any concerns.
Regards,
M. Balaji.