This question is locked. New answers and comments are not allowed.
I am using 2010.1.416
I have a very simple grid and I cannot make it work using AJAX
All what I want is to delete one row.
I am having this error message
Cannot use only server templates in Ajax or WebService binding mode. Please specify a client template as well.
and here is the code I am using in a partial view
<% Html.Telerik().Grid(Model)
.Name("Grid")
.DataKeys(dataKeys => dataKeys.Add(c => c.UserID))
.DataBinding(dataBinding => dataBinding.Ajax().Delete("RemoveUser", "Account"))
.Columns(columns =>
{
columns.Template(c => {%>
<img alt="<%=c.Provider.Name%>"
src="<%=Url.Content(@"~/Assets/Icons/" + c.Provider.Name + ".png")%>"
/>
<%
}
).Title("Provider");
columns.Bound(o => o.Identifier).Width(200);
columns.Bound(o => o.LastActivity).Format("{0:MM/dd/yyyy}").Width(120);
columns.Command(commands => commands.Delete()).Width(200);
})
.Pageable()
.Sortable()
.Render();
%>
I am quite sure I am missing something very obvious
Thank you for your help
Regards
Nachid
I have a very simple grid and I cannot make it work using AJAX
All what I want is to delete one row.
I am having this error message
Cannot use only server templates in Ajax or WebService binding mode. Please specify a client template as well.
and here is the code I am using in a partial view
<% Html.Telerik().Grid(Model)
.Name("Grid")
.DataKeys(dataKeys => dataKeys.Add(c => c.UserID))
.DataBinding(dataBinding => dataBinding.Ajax().Delete("RemoveUser", "Account"))
.Columns(columns =>
{
columns.Template(c => {%>
<img alt="<%=c.Provider.Name%>"
src="<%=Url.Content(@"~/Assets/Icons/" + c.Provider.Name + ".png")%>"
/>
<%
}
).Title("Provider");
columns.Bound(o => o.Identifier).Width(200);
columns.Bound(o => o.LastActivity).Format("{0:MM/dd/yyyy}").Width(120);
columns.Command(commands => commands.Delete()).Width(200);
})
.Pageable()
.Sortable()
.Render();
%>
I am quite sure I am missing something very obvious
Thank you for your help
Regards
Nachid