Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
785
Scrolling position and active cell
posted

Hi,

 

In the XamWebGrid, the grid always brings the current cell in view. I'm not using a cell-based but a row-based selection so for me cell selection is meaningless and the user doesn't even know there are cells.

However, every time the user clicks on a cell on the right-side of the grid, the active cell changes and then the grid scrolls to the right (so that all the text is visible).

 

Is it possible to deactivate that behavior? I'm only interested in row selection (which works fine as it is).

Specifically, I want the horizontal scroll to not change when a cell that is partially hidden is clicked.

 

In a related note, I implemented a CurrentItemBinding behaviour so that the current item of the ICollectionView that the grid is bound to is scrolled into view when it changes. I've got the same issue because ideally I'd like to have only the vertical scrollbar change and the horizontal stay the same.

At the moment the horizontal and vertical scrollbars jump around.

 

Cheers.

Parents
  • 40030
    Suggested Answer
    Offline posted

    Hi, 

    Currently, we have not implemented a way to disable the feature, it's automatic when that cell becomes active. 

    I suppose you could write logic and to stop the cell from becoming active by using the ActiveCellChanging event, and setting e.cancel to true. 

    -SteveZ

Reply Children
No Data