This question is locked. New answers and comments are not allowed.
I have a an ajax bound grid and when the delete command is added, the grid and an ajax bound tree on the page stop working. The data loads, but the expand/collapse buttons on the tree and grid, and the delete button stop working. Everything, including the delete button was previously working, but has recently stopped. There were lots of changes to the css so it might be that, but when I switch to a different telerik default style the behavior is the same. There are no other errors or problems besides this behavior. Any help or debugging points would be greatly appreciated. Thanks, Jordan
Here is the view code:
Here is the view code:
Html.Telerik().Grid<
ExpandedRule>()
.Name(
"Rules")
.DataKeys(keys =>
{
keys.Add(rule => rule.Id);
})
.DataBinding(dataBinding => dataBinding
.Ajax()
.Select(
"GetRulesAjax", "Rules")
.Delete(
"DeleteRuleAjax", "Rules"))
.Columns(columns =>
{
columns.Bound(rule => rule.Name).Title(
SharedRes.Name).Width(700);
columns.Bound(rule => rule.Id)
.Title(
string.Empty)
.Width(80)
.ClientTemplate(
"<a class=\"t-grid-action t-button t-state-default\" href=\"/Rules/Edit?id=<#= Id #>\">" + SharedRes.Edit + "</a>");
columns.Command(commands =>
{
commands.Delete();
}).Width(80);
})