This question is locked. New answers and comments are not allowed.
Hello,
When I follow the documentation in my testings, I see an issue.
If I run the following:
<%
Html.Telerik().Grid(recs)
.Name("records")
.Columns(columns =>
{
columns.Bound(rec => rec.id);
columns.Bound(rec => rec.name);
//Template column which shows an action link
columns.Template(o => {
%>
<%= Html.ActionLink("Edit", "Home", new { id = o.id }) %>
<% }).Title("Edit");
}).Pageable().Sortable().Render();
%>
it works fine. However, if I add:
.DataBinding(dataBinding => dataBinding.Ajax().Select("_AjaxBinding", "Home"))
the following error occurs:
"...Cannot use only server templates in Ajax or WebService binding mode. Please specify a client template as well..."
The cause seems to be "columns.Template", which cannot be used with Ajax together.
Is there any workaround? Any plan to make "columns.Template" compatible with dataBinding.Ajax()?
Thank you!
When I follow the documentation in my testings, I see an issue.
If I run the following:
<%
Html.Telerik().Grid(recs)
.Name("records")
.Columns(columns =>
{
columns.Bound(rec => rec.id);
columns.Bound(rec => rec.name);
//Template column which shows an action link
columns.Template(o => {
%>
<%= Html.ActionLink("Edit", "Home", new { id = o.id }) %>
<% }).Title("Edit");
}).Pageable().Sortable().Render();
%>
it works fine. However, if I add:
.DataBinding(dataBinding => dataBinding.Ajax().Select("_AjaxBinding", "Home"))
the following error occurs:
"...Cannot use only server templates in Ajax or WebService binding mode. Please specify a client template as well..."
The cause seems to be "columns.Template", which cannot be used with Ajax together.
Is there any workaround? Any plan to make "columns.Template" compatible with dataBinding.Ajax()?
Thank you!