Grid Scrolling Issue

Posted by: hoang.nguyen on 14 November 2017, 9:44 am EST

    • Post Options:
    • Link

    Posted 14 November 2017, 9:44 am EST

    I cannot get the grid last column to be display after loading. I have a Flexgrid with more than 50 columns. In loadedRows event, after doing all things I need, at the last line, I have tried to move the focus to last column by:

    flex.select(new wjGrid.CellRange(0, flex.columns.length - 1, 0, flex.columns.length - 1))

    This only my to the beginning of the cell on last column. Is there any way I can move it to the end of the cell so the entire last column is always visible? Thank you very much.

  • Posted 14 November 2017, 4:25 pm EST

    Hi Hoang,

    Please try to scrollIntoView method for the same. This will scroll to the desired cell but do not select the cell.

    flex.scrollIntoView(0,flex.columns.length-1);
    

    ~Manish

  • Posted 15 November 2017, 2:33 am EST

    Thank you Manish. I have just tried and it does not fix the issue. I think the scrolling is scrolling to and stop at the beginning of the cell on that column. If your last column width is a little wide, then it will not be displayed completely.

  • Posted 15 November 2017, 4:00 pm EST

    Hi Hoang,

    We are able to scroll into view for the last column with complete cell visible. Please refer to the attached sample and screenshot for the same.

    ~Manish

    Scroll_Grid.zip

  • Posted 20 November 2017, 7:50 am EST

    Thank you Manish very much

Need extra support?

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

Learn More

Forum Channels