Hi Daniel,
scrollCellToVisible() will work only when the table and its parent
(container) have been uploaded:
ULCTable table = new ULCTable(model);
table.upload();
ULCScrollPane scroll = new ULCScrollPane(table);
scroll.upload();
table.scrollCellToVisible(table.getModel().getRowCount() - 1, 0);
I hope this helps.
Thanks and regards,
Janak
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Daniel Dilitz
Sent: Thursday, August 31, 2006 1:34 AM
To: [email protected]
Subject: [ULC-developer] Initialize table to display bottom rows
Hi all,
I try to initialize my table from the bottom. What im doing is setup my
table and then call scrollCellToVisible(table.getRowCount() - 1, 0). But
this doesnt work.
Well i thought about a hack wich would call scrollCellToVisible() on the
first roundtrip after the UI- Half of the table was created. But the data
from the top rows would get transferred wich is not needed.
Is this a bug or is there any other way to initialize the table showing the
bottom lines? (or showing from row number "x")
Best regards
Daniel
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer