Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IWjQDBGrid column auto width
#1
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.
Reply
#2
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:

   
Reply
#3
(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
Reply
#4
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)