jQWidgets Forums

jQuery UI Widgets Forums Grid How can I set fixed column widths?

This topic contains 4 replies, has 2 voices, and was last updated by  dagle 9 years, 8 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • How can I set fixed column widths? #75985

    dagle
    Participant

    I need to set the max column width (for all columns in the grid) to a single character from a fixed-width font. For example, a “W” in “Courier New”.

    I have this jsFiddle for experimenting with.

    How can I set fixed column widths? #76012

    Peter Stoev
    Keymaster

    Hi dagle,

    Each column has maxwidth and minwidth properties.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    How can I set fixed column widths? #76026

    dagle
    Participant

    Can you link the documentation on that? Is this a style type setting (ie, do I set it to “1em”)? Are there other style setting I can use here such as horizontal text alignment?

    As my Fiddle shows I already have the width set to 1.

    How can I set fixed column widths? #76030

    Peter Stoev
    Keymaster

    Hi dagle,

    As these are column properties, you can find them within the Grid’s API Documentation in the “columns” section. These are not Styles. These are Grid initialization properties.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    How can I set fixed column widths? #76164

    dagle
    Participant

    I still have not been able to resolve this. Your code appears to set the minimum width of a column and row to 25px regardless of what I enter for a columns width, maxwidth, or minwidth.

    I have tried fixing this with css and various javascript solutions.

    How can I change this behavior? I need a value smaller than 25px for both rows and columns.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.