I am usung telerik grid with one or more template columns , containing HTML Helpers.
But its not working well. Its giving me the err - "Can not use templates in Ajax or web service binding mode."
Is there any way to avoid this?
Following is the code that I am using for grid.
<%Html.Telerik().Grid(Model)
.Name("Grid")
.Toolbar(commands => commands.Insert())
.DataKeys(keys => keys.Add(c => c.RoleID))
.DataBinding(dataBinding => dataBinding.Ajax()
.Select("_SelectAjaxEditing", Home
.Insert("_InsertAjaxEditing", Home")
.Update("_SaveAjaxEditing", "Home
.Delete("_DeleteAjaxEditing", "Home
)
.Columns(
columns =>
{
columns.Add(o =>
{
%>
<%=Html.RadioButton("rdoSelectRole",new {id = "SelectRole"}, false) %>
<%
})
.Title("Select")
columns.Add(o =>
{
%>
<%= Html.Encode(o.RoleName) %>
<%
})
.Title("Role Name")
columns.Add(o =>
{
%>
<%= Html.Encode(o.Description)%>
<%
})
.Title("Description")
columns.Add(o =>
{
%>
<%=Html.DropDownListFor(model => o.Status, new SelectList(new string[] { "Enabled", "Disabled" }), new { CssClass = "input-config" })%>
<%
})
.Title("Status")
columns.Command(commands =>
{
commands.Edit();
commands.Delete();
})
})
.Scrollable()
.Pageable()
.Render();
%>