Thanks, I have tried prefetchRows() but the table was not being redrawn, so I used:
table.scrollCellVisible(0, 0); model.reloadData() It works but it seems that the table is being redrawn twice. Best regards, Elemer. > Hey, > > My first question is how I can force a reloadData() > for the beginning of the virtual table ? > > You can use the 'prefetchRows' of the remote model and hand in the range > indexes you want to load. This would be 0 and the amount of visible rows. > > As most of the time the log window is showing the > most recent messages (the user has not scrolled it > down), it would be more efficient, in this case, to simply > insert the new received message in the table model > and render the table, without sending a request > to the server for data which is already in the model. > I didn't find any function in 'qx.ui.table.model.Remote', > to insert a row in the model, so it seems not be > currently possible, correct ? > > Thats currently not possible as the range is always calculated automatically. > But you could handle that yourself in you own '_loadRowData' method which > could cache the already known values and only load the new once. Combined > cached and new data could be given to the '_onRowDataLoaded' method. > > Regards, > Martin > ------------------------------------------------------------------------------ > LogMeIn Central: Instant, anywhere, Remote PC access and management. > Stay in control, update software, and manage PCs from one command center > Diagnose problems and improve visibility into emerging IT issues > Automate, monitor and manage. Do more in less time with Central > http://p.sf.net/sfu/logmein12331_d2d > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > ------------------------------------------------------------------------------ LogMeIn Central: Instant, anywhere, Remote PC access and management. Stay in control, update software, and manage PCs from one command center Diagnose problems and improve visibility into emerging IT issues Automate, monitor and manage. Do more in less time with Central http://p.sf.net/sfu/logmein12331_d2d _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
