This is a migrated thread and some comments may be shown as answers.

[Solved] Bug report: nested html table in a grid item breaks ajax deleting

1 Answer 59 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Graycrow
Top achievements
Rank 1
Graycrow asked on 30 May 2010, 06:31 PM
Hi.
I think i found a bug in ASP.NET MVC controls version 2010.1.309. Sorry if it was already been fixed - I have no access to the more recent versions to check.

So, if you have nested HTML table in some column of your grid item, it prevents correct ajax deleting (and probably editing) by returning a wrong item index in the "dataItem" function in telerik.grid.editing.min.js:
this.$tbody.find("tr:not(t-grouping-row)").index(m) 
It counts not just grid table rows but also rows of all nested tables (if they are there). As a result deleting of the first row in the grid (with index 0) works fine, any other row or not going to be deleted (because there are no data item in the grid with obtained item index, causing Firebug show "data is undefined" error) or it's deleting some other row, which index is the same as wrong index returned by that code.

1 Answer, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 31 May 2010, 06:22 AM
Hi Graycrow,

We are aware of this issue and it is going to get resolved in the Q2 2010 release. I suggest you modify the source code to fix the selector:

this.$tbody.find("> tr:not(t-grouping-row)").index(m)

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
Graycrow
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or