-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi guys,
I have table entity class which is have association map one-to-many with another entity (Person & email account). I used it as model to view model class, Person as header (one). Email account as detail (many) and using Grid as their component (Grid model is vm.person.emailAccountList).
It work fine, but I just realized that every time it manipulated (add/delete) the grid row, the Grid's scroll always moving to top. Is that possible to manipulate this scroll view programmatically? or any others workaround? I've tried this, but seem does not work:
Clients.evalJavaScript("zk.Widget.$('$gridtest').ebody.scrollTop = zk.Widget.$('$gridtest').ebody.scrollHeight");
Program programmaticlly, I'm using this to notify changes for each add/delete row method:
binder.notifyChange(person, "emailAccountList");
Please kindly help. Thank you
Hi Darksu Thanks a lot, your suggestion is work :) actually I'm not using paging feature within my grid, but since it solved this problem, I managed it with using paging=500 (assumed detail items per header max is 500), so it still look like normal :D
Asked: 2015-10-05 15:08:12 +0800
Seen: 28 times
Last updated: Oct 06 '15