|
<< Click to Display Table of Contents >> Navigation: Forum > IWjQDBGrid column auto width |
05-02-2022, 04:52 PM:
I have a IWjQDBGrid component with goAutoGridWidth and goAutoColumnWidth set to True but this doesn't work.
How can I put this to work? Either I have a column with 2 or 3 characters and a column too large or a string with several characters that do wrap when it shouldn't, because too much width is wasted with the short column.
05-18-2022, 12:31 AM:
goAutoGridWidth means that the grid will be resized. In general this is a bad idea.
goAutoColumnWidth means that that the columns will be resized to fit the available grid width without an horizontal scroll bar, proportionally to the width that they have during design time.
Setting goAutoGridWidth = False and goAutoColumnWidth = True using the IWjQGrid on Github gives me precise results:
[attachment=492]
05-23-2022, 09:56 AM:
(05-18-2022, 12:31 AM)Alexandre Machado Wrote: [ -> ]goAutoGridWidth means that the grid will be resized. In general this is a bad idea.
goAutoColumnWidth means that that the columns will be resized to fit the available grid width without an horizontal scroll bar, proportionally to the width that they have during design time.
Setting goAutoGridWidth = False and goAutoColumnWidth = True using the IWjQGrid on Github gives me precise results:
Is this the link?
https://github.com/free-jqgrid/jqGrid
05-27-2022, 12:50 AM:
No, when I said github I meant the https://github.com/Atozed/IntraWeb/tree/...phi/jQGrid
demo. If you set the properties as I mentioned, the result is exactly what you expect