This is a migrated thread and some comments may be shown as answers.
Delete command causes controls to stop working
1 Answer 12 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jordan
Top achievements
Rank 1
Jordan asked on 19 Nov 2010, 10:59 PM
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:

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);

})

 

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 22 Nov 2010, 09:56 AM
Hi Jordan,

 Unfortunately we are not sure what may be causing thing problem. Could you please attach a sample project? 

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Jordan
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or