Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ListGrid horizontal scroll performance

    Hi,

    we have a list grid with 30-50 columns that shows (partioally on purpose) a horizontal scroll bar. When you now move the scrolllbar quickly (i.e all the way to the out-of-view end) the existing (i.e drawn) columns move nicely, the new columns only appear after a visible lag.

    We tries the setShowAllColumns method but this did not seem to have any visible impact. How can we get around this?

    Maybe draw the gid in a wide canvas (so that the scrollbar is on the canvas rather on than on the gird)? Or are we simply missing something here?

    Thanks
    Chris

    #2
    There is a small delay when horizontally scrolling because we avoid drawing columns that are not on the screen. This is what allows the grid to scale to many, many columns and rows.

    Setting showAllColumns will get rid of the delay at the cost of slower initial rendering. If you are not seeing this effect, there was probably some issue in how you tested, such as forgetting to actually save code changes before re-testing.

    However, we don't recommend using the setShowAllColumns() setting except for unusual cases where the user will interact with a grid for a long time without doing anything that causes it to redraw (resizing columns, changing column order, sorting, etc).

    Comment

    Working...
    X