Extreme right of horizontal scrollbar(vertical scrollbar in otherwards) is not visible

Posted by: ashis on 8 September 2017, 1:15 pm EST

  • Posted 8 September 2017, 1:15 pm EST

    Hi bob
    I am using a farpont grid in win application.
    Although the grid has 150 columns and the horizontalscroolbar is visible, but the end of horizontalscroolbar  ( I mean the extreme rightend of  horizontalscroolbar ) is not visible when the page loads.
    The horizontalscroolbar and verticalscroolbar policy is set to "always".


    The Grid is on a tabpage, and the tab is on panel2 of spliiter control. So when resizing the splitter control ( I want to resize the grid also), some times the extreme right side of the grid is not visible.( specially when moving the splitter control towards right).


    Do you think that something I left..I mean some properties


    Thanks
    Ashis

  • Replied 8 September 2017, 1:15 pm EST

    Ashis -

    I can't think of anything you would have left out to produce this behavior.  If you have a small project you could attach I'd be happy to take a look at it.
  • Replied 8 September 2017, 1:15 pm EST

    Thanks  Bob


    Actually Grid is on a tabpage, and the tab is on panel2 of spliiter control. So when resizing the splitter control ( I want to resize the grid also), some times the extreme right side of the grid is not visible.( specially when moving the splitter control towards right).


    I found the issue that we have 5 frozen columns with some fixed size.
    And I am trying to reduce the grid width (by dragging the splitter control). When the grid size is becoming less than the 5 frozen column's combined length, the vertical scrollbar is not visible.


    Is it possible to show the vertical scrollbar when the grid size is becoming less than the 5 frozen column's combined length ?


    Or is there any way to specify the size of the spread and the columns in percentage. So that when the spread size will reduce , automatically the column size will reduce or something like this.



    Ashis

  • Replied 8 September 2017, 1:15 pm EST

    Ashis -

    With the FrozenColumns I am not aware of a way to adjust the size of the spread but if you can attach a project I can try and see if there is a way to work around it.
  • Replied 8 September 2017, 1:15 pm EST

    Ashis,


    When calculating the layout of the viewports and scroll bars, the FpSpread control first gives sapce to the header viewports, then the leading frozen viewports, then the trailing frozen viewports, then the scroll bars, and then the scrollable viewports.  If the size of the headers plus the size of frozen viewports is greater that the size of the control then the scroll bars will be pushed outside the control.  (Note: This is somwhat similiar to how Excel or OpenOffice will push the scroll bars outsided the workbook window when the size of the headers is greater than the size of the workbook window.)


    The Spread control does support the concept of percentage column widths.  You would have to write code to manually resize the column widths in the grid when the grid's container is resized.

Need extra support?

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

Learn More

Forum Channels