General Category > Help for ParamQuery Grid (free version)
Column Width
(1/1)
paulearley:
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
paramvir:
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
Navigation
[0] Message Index
Go to full version