File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -264,6 +264,7 @@ <h2>Demonstrates:</h2>
264264 // wire up model events to drive the grid
265265 dataView . onRowCountChanged . subscribe ( function ( args ) {
266266 grid . updateRowCount ( ) ;
267+ grid . render ( ) ;
267268 } ) ;
268269
269270 dataView . onRowsChanged . subscribe ( function ( rows ) {
Original file line number Diff line number Diff line change @@ -227,6 +227,7 @@ <h2>Demonstrates:</h2>
227227 // wire up model events to drive the grid
228228 dataView . onRowCountChanged . subscribe ( function ( args ) {
229229 grid . updateRowCount ( ) ;
230+ grid . render ( ) ;
230231 } ) ;
231232
232233 dataView . onRowsChanged . subscribe ( function ( rows ) {
Original file line number Diff line number Diff line change @@ -1213,7 +1213,7 @@ if (!jQuery.fn.drag) {
12131213 // this helps avoid redundant calls to .removeRow() when the size of the data decreased by thousands of rows
12141214 var l = options . enableAddRow ? gridDataGetLength ( ) : gridDataGetLength ( ) - 1 ;
12151215 for ( var i in rowsCache ) {
1216- if ( i > l ) {
1216+ if ( i >= l ) {
12171217 removeRowFromCache ( i ) ;
12181218 }
12191219 }
You can’t perform that action at this time.
0 commit comments