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
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
Sorry for the late reply, Thanks I got that working but what if a cell's content exceeds the default column width? I'm getting the columns and data dynamically so the defaultColumnWidth only partially solves the problem because content that exceeds the column width will get cut off, correct? is there any way around this?
Hello Armando, I am still following this thread. Have you been able to resolve the issue? If you have any concerns or questions, please feel free to contact me, I will be glad to help you. Thank you for choosing Infragistics components!
Kind Regards, Petko Zhekov Senior Software Engineer