Hi,
Is it possible to set the column widths in the WebDataGrid to auto-size depending on the text within? I've edited the CSS to stop text wrapping in the cells (white-space: no-wrap;), which has worked nicely, however now the text is hidden in some of the columns because they all size the same. I've noticed in Inspect Element that the generated table header elements (th) determine the size of the column.
Any help would be greatly appreciated.
Regards,Tom.
Hello Tom,
Thank you for contacting us!
Our grid does not provide such functinoality by design, although it is achievable. My colleague Radoslav implemented possible solution, could you please have a look. I hope you will benefit from it.
https://ko.infragistics.com/community/forums/f/ultimate-ui-for-asp-net/60115/autosizing-columns-in-webdatagrid
Hi Zdravko,
Thanks for this, I'm just trying to implement this solution now, but I need a little more information:
An element is specified in the BLOCKED SCRIPT textWidthChecker
My page does not contain this element, do I have to create it myself or is it part of the WebDataGrid? If it's part of the Grid, how do I find it to get its correct name? If it needs creating, what type of element is it?
Best Regards,Tom.