Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
510
Horizontal Scroll Bar with autoGenerateColumns = true
posted

Hi,

I can get the horizontal scroll bar to appear when I have autoGenerateColumns set to false and I give each column a width that adds up to more than the grid's width.

But I was wondering if it's possible to get a horizontal scroll bar to show with autoGenerateColumns set to true?

Thanks,

Armando

Parents
No Data
Reply
  • 2355
    Verified Answer
    Offline posted

    Hi Armando,


    Thank you for posting in Infragistics forums! When columns are auto-generated you can’t set width to each one of them. But you can set the defaultColumnWidth option. Its value will be the width of the columns and if the sum of their widths exceeds the width of the whole grid a horizontal scroll bar will be rendered. I also prepared a jsfiddle sample for you.

    I hope this helps!


    Kind regards,

    Petko Zhekov

    Senior Software Engineer

Children