| Page 1 of 1 | [ 2 posts ] |
|
I create a DataTable,then visit a cell. for some reason I add a row in table, then visit that cell again.Finally, I find this Node is diffrent from the previous although it in the same Model.
example: var table = Y.DataTable(); var td1 = table.getCell([0,0]); table.addRow(...); // I am sure this row added at last. //without addRow,there can be another operation,like table.sort(),table.removeRow,table.addColumn() etc. var td2 = table.getCell([0,0]); alert(td1==td2); //false. Actually, td1 and td2 are the same cell in table, just after operation, td1 was replaced by td2.I want to know why is that.(No table.synUI() excute except on table's init at first) |
|
DataTable currently rerenders the entire table body when any change to the data occurs. It was a compromise solution to allow the refactor to make it into the 3.5.0 timeframe. Here's a patch that will preserve existing rows:
https://gist.github.com/2295032 |
| Page 1 of 1 | [ 2 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group