ParamQuery grid support forum
General Category => Help for ParamQuery Grid (free version) => Topic started by: paulearley on July 18, 2013, 07:01:21 pm
-
I am new to your fine grid. I can get my grid to work but I cannot create a column of a width less than 47 pixels. I set the width and other parameters in the following manner:
var obj = {};
obj.width = 388;
obj.autoWidth = false;
obj.autoheight = true;
obj.numberCell = false;
obj.topVisible = false;
obj.bottomVisible = false;
obj.oddRowsHighlight = true;
obj.colModel = [{title:"_", width:12, dataType:"string", editable: false},
{title:"Generic", width:103, dataType:"string", editable: false},
{title:"Trade", width: 103, dataType:"string", editable: false},
{title:"Street", width:103, dataType:"string", editable: false}];
Can you let me know what I am doing wrong?
Paul Earley
-
There is minWidth option having default value of 50 which you can change to desired pixels.
I need to add it in the api documentation but you can see how it's used in this demo
http://paramquery.com/demos/selection_custom
The API has been updated for minWidth
http://paramquery.com/api#option-minWidth