tony said:
Hello,
Also use the second parameter in setGridWidth – see Docs.
Regards
Tony
Tony,
According to the docs, the second parameter “has the same behavior as shrinkToFit“. The description of “shrinkToFit” in the docs says, “If the value is false and the value in width option is set then: The width of the grid is the width set in option. The column width are not recalculated and have the values defined in colModel.“
This “shrinkToFit = false” behavior is what I am trying to get. I don't want the columns to resize whenever I call setGridWidth.
If you look at my code, I am setting the second parameter to “false” on this line…
$(”#gridContainer”).setGridWidth(200, false);
I have tried setting the parameter to “true”, but that doesn't do what I want either.
Any help you could give me would be greatly appreciated.
-David