Grid - Custom cell template (Server mode)


About this example


In this demo we use the CellTemplate method to format the cells could have image , format value colors and do some query. After use the Bound method you could use the CellTemplate method to render the cell what you likes.

  <% 
        Ajax.Dna().Grid(Model)
           .....
           .Columns(cols =>
           {
               cols.Bound(m => m.RequiredDate)
                     .Width(150)
                     .Template(order => {
                 %> Render your html or server variable values here. <%
               });
               ...
            }
            .Render();
%>