-
New Feature
-
Resolution: Done
-
Normal
-
8.5.1.2
-
None
-
Security Level: Jimmy
-
None
-
ZK 8.5.2 S1, ZK 8.5.2 S2
-
None
Requirement Description
developers want to scroll to a specific item in a browser under ROD enabled, e.g. scroll to 100th of 1000 items.
Current problem
- Grid.renderRow(row) and Grid.renderItems(Set<Row>) only work for a live model (ROD disabled).
- scrollIntoView(component) requires to pass a Row, but calling Grid.getRows().getChildren().get(index) return null if the row is not renderd under ROD.
- Grid.renderAll() enforces to render all items which could be inefficient when a model size is very large.
Proposed solution
provide an API Grid.scrollToIndex(index) which invokes a javascript move scroll position to the corresponding item of the index, so trigger the ROD to render the corresponding Rows.
- relates to
-
ZK-4890 EE ROD on listbox override scrollToIndex
- Closed