Scroll bar displaced in Flexgrid

Posted by: pablo on 6 June 2022, 9:48 pm EST

  • Posted 6 June 2022, 9:48 pm EST

    Hi,

    I have a question related to the initial position where the scroll bar in Flexgrid is placed. The beginning of the grid must be the default position, but in some cases it is charged in the middle, as shown in the picture.



    Is there any way to change this?

    Thanks
  • Replied 9 June 2022, 8:29 am EST

    Hello,

    You can update the position of the flexgrid scrollbar, by using the scrollPosition property of FlexGrid and assigning the required value within it. Please refer to the below code snippet:


    <script>
    c1.documentReady(function(){
    let grid = wijmo.Control.getControl(".wj-flexgrid");
    grid.scrollPosition = = new wijmo.Point(0,0);
    });
    </script>


    For more information on the above property, please refer to the below documentation link:
    https://www.grapecity.com/componentone/docs/mvc/online-mvc-core/wijmo.grid.FlexGrid.Class.html#scrollPosition


    Regards
    Dushyant Sharma
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels