benh

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • in reply to: Setting width of colnames #97234
    benh
    Participant

    That sets the width relative to the grid, but what I need is the column names in the colnames collection to line up with the columns.

    in reply to: Setting width of colnames #97232
    benh
    Participant

    I added some columns :

    colNames: [

    'FY', '%', '$', '%', '$', '%', '$', '%', '$'],

    Then I tried setting the widths of the columns like:

    colModel: [

    { name:

    'fiscalyear', index: 'fiscalyear', resizable: false, width: 66, sortable:false, align:“center” },

    { name:

    'densoms', index: 'densoms', resizable: false, width: 39, sortable:false,align:“right”, formatter:'number', formatoptions: {thousandsSeparator: “,”, decimalPlaces:0, defaultValue: '0'} },

    { name:

    'densoppu', index: 'densoppu', resizable: true, width :95, sortable:false,align:“right”, formatter:'currency', formatoptions: {thousandsSeparator: “,”} },

    { name:

    'supplierams', index: 'supplierams', resizable: false, width: 39, sortable:false,align:“right”, formatter:'number', formatoptions: {thousandsSeparator: “,”, decimalPlaces:0, defaultValue: '0'} },

    { name:

    'supplierappu', index: 'supplierappu', resizable: true, width :95, sortable:false,align:“right”, formatter:'currency', formatoptions: {thousandsSeparator: “,”} },

    { name:

    'supplierbms', index: 'supplierbms', resizable: false, width: 39, sortable:false,align:“right”, formatter:'number', formatoptions: {thousandsSeparator: “,”, decimalPlaces:0, defaultValue: '0'} },

    { name:

    'supplierbppu', index: 'supplierbppu', resizable: true, width :95, sortable:false,align:“right”, formatter:'currency', formatoptions: {thousandsSeparator: “,”} },

    { name:

    'suppliercms', index: 'suppliercms', resizable: false, width: 39, sortable:false,align:“right”, formatter:'number', formatoptions: {thousandsSeparator: “,”, decimalPlaces:0, defaultValue: '0'} },

    { name:

    'suppliercppu', index: 'suppliercppu', resizable: true, width :95, sortable:false,align:“right”, formatter:'currency', formatoptions: {thousandsSeparator: “,”} }

    ],

    The column widths are correct, but the header value for each doesn't adjust to the 39, or 95 width.

    I need to be able to adjust it to match the column.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

Stay connected with us in your favorite flavor!