I have been plagued on more than one occasion dealing with scrollbars on the grid and in the past I gave up. Fortunately I have found a resolution today which seems to work all the time. I figured I would share this to help anyone else having problems.
Problems:
- Horizontal scrollbar is present when you enable scrolling.
- Documentation recommendations don't really explain how to fix the problem.
- I don't use auto generation of columns. Who does?? Is this something people really use for production applications?
- Setting widths of columns not to exceed grid width doesn't work and misleading.
Solution:
- To remove the horizontal scrollbar when NOT USING auto generate columns.
- Set grid width to 100%
- DO NOT set the Master Table View width.
- Assign all of your columns a fixed width except for 1 and apply 50% or other large % to it.
* Make sure this is done in the <headerstyle> elements on ALL columns
- Make sure you do not set any widths in the <itemStyle> elements.
- Enable scrolling using static headers.
- If any hidden columns are present set the widths to 0px.
Post if this helped you.
-Robert
Problems:
- Horizontal scrollbar is present when you enable scrolling.
- Documentation recommendations don't really explain how to fix the problem.
- I don't use auto generation of columns. Who does?? Is this something people really use for production applications?
- Setting widths of columns not to exceed grid width doesn't work and misleading.
Solution:
- To remove the horizontal scrollbar when NOT USING auto generate columns.
- Set grid width to 100%
- DO NOT set the Master Table View width.
- Assign all of your columns a fixed width except for 1 and apply 50% or other large % to it.
* Make sure this is done in the <headerstyle> elements on ALL columns
- Make sure you do not set any widths in the <itemStyle> elements.
- Enable scrolling using static headers.
- If any hidden columns are present set the widths to 0px.
Post if this helped you.
-Robert