JavaScript UI Libraries & Blazor Components Suite – Smart UI Forums ScrollBar smart-scroll-bar component in grid, ‘change’ event

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #103340
    martinb
    Participant

    Hi guys,

    How can I capture the scroll event on the grid?

    I have a grid and I need to read the value of the horizontal scrollbar.

    I can see in the docs that there is an event (‘change’) for a smart-scroll-bar component and it works perfectly, however this doesn’t work with the smart-scroll-bar component, which can be found in a Grid.

    Is it a difference between the <smart-scroll-bar> component and a <smart-scroll-bar> component in grid?

    How can I read the scroll bar value in the grid in the easiest way?

    Cheers,

    M

     

    #103341

    Hi,

    You can use the Grid’s grid.getHorizontalScrollValue(); method to get the horizontal scroll value position or the grid.getVerticalScrollValue() for the vertical value. However, we do not raise events when the scroll value is changed.

    Best Regards,
    Jack

    Smart UI Team
    https://www.htmlelements.com/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.