Categories | Question details Back To List | ||||||||
updation of rownumber is failing after row delete Hi, I am using Dataprocessor to delete the row grid, but after deletion of the row it is failing to update the row number in rowId. for example : I have 5 columns in grid, first column is showing rownumber and grid is split at first column. I am using 'cntr' to display rownumber in first column, other columns are showing the data in grid. when I am deleting a row at rownumber 6, after successful deletion of this 6th row, row sequence is displayed wrong in grid as 1,2,3,4,5,7,8,9,.... before deleting the 6th row the row sequence is 1,2,3,4,5,6,7,8,.... Please suggest me, how to display the rownumber currectly after deletion of rows? /Thanks Raj Answer posted by Support on May 12, 2008 03:35 You can add next line to grid initialization code grid.attachEvent("onGridReconstructed",function(){ mygrid._fake.resetCounter(0) // reset cntr indexes for column with index == 0 return true; }) such code will automatically update counter column after any delete|add|move operation Answer posted by Bram on Oct 14, 2008 11:38 This is working, but after a few actions inserting and deleting rows it gets broken and the row counter is not updated correctly. javascript error: Error: this.rowsAr[this.rowsBuffer[i].idd] is null Answer posted by Support on Oct 15, 2008 02:14 Please try to use latest version instead of original one ( taken from dhtmlxgrid 2.0 package ) , with it problem not reconstructable. Also, please be sure that - you are using correct rowID ( unique, not equal to 0 ) while adding rows - you not using dyn.loading mode ( when not all rows loaded on client side ) Attachments (1)
|