This question is locked. New answers and comments are not allowed.
<% Html.Telerik() .Grid(Model) .Name("customers") .PrefixUrlParameters(false) .Columns(columns => { columns.Add(c => { %> <%= Html.ActionLink("Edit", "Edit", new { id = c.CustomerID })%> <%= Html.ActionLink("Delete", "Delete", new { id = c.CustomerID })%> <% }).Title("Action"); columns.Add(c => c.CompanyName).Width(200); columns.Add(c => c.ContactName); columns.Add(c => c.Address); columns.Add(c => c.City); columns.Add(c => c.PostalCode); columns.Add(c => c.Country); columns.Add(c => c.Phone); columns.Add(c => c.Fax); }) .Filterable() .Sortable(sort => sort.SortMode(GridSortMode.MultipleColumn)) .Pageable() .Scrollable(scrolling => scrolling.Height(250)) .Render(); %>
I am unable to convert Bold and Italic code in razor
@{Html.Telerik().Grid(Model).Name("Categories").Columns(columns => {
columns.Add(c => c.CategoryID);
columns.Add(c=>c.CategoryName);
columns.Add(c => c.Description);
columns.Add(c =>
{
%>
<%= Html.ActionLink("Edit", "Edit", new { id = c.CustomerID })%>
<%= Html.ActionLink("Delete", "Delete", new { id = c.CustomerID })%>
<%
}).Title("Action");
})}
Please help me.