Author Topic: Column Width  (Read 8153 times)

paulearley

  • Newbie
  • *
  • Posts: 1
    • View Profile
Column Width
« 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

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Column Width
« Reply #1 on: July 19, 2013, 09:37:59 am »
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
« Last Edit: September 06, 2013, 10:50:22 am by paramquery »