-
Sencha Premium Member
Using LiveGridView with RowNumberer
In the project I'm working on, we previously used the BufferView and RowNumberer with our Grid. Now we are trying to use the LiveGridView but the RowNumberer only displays values 1-15 regardless of scrolling or changing to a new page (there are 15 rows displayed in the view).
It used to be that a custom CellRenderer was used to display the correct row number, but now it appears RowNumberer is using a AbstractCell and numbering based on the Context.
So is the Context not updating properly or can the RowNumberer not be used with the LiveGridView?
Thanks.
-
Sencha User
-
The context either has the index relative to the current scrolled section or the locally cached items - probably the former. If so, add it to the current offset, according to the livegridview. If it is relative to the cached items, add it to the offset of the last load operation.
-
Sencha User
RowNumberer<XYZ> rowNumbererColumn = new RowNumberer<XYZ>(new IdentityValueProvider<XYZ>());
after scrolling few times up and down
i see values like (they repeat..)
1 2 3 4 5 6 1 2 3 4 5 6 7 8 9 ...
how do you " add it to the offset of the last load operation" ?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules