jQWidgets Forums

jQuery UI Widgets Forums Grid Grid autowidth property

This topic contains 3 replies, has 2 voices, and was last updated by  Peter Stoev 10 years, 2 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Grid autowidth property #68618

    Marcus Fredriksson
    Participant

    Hi,
    First of all I would like to say that I really like a lot of stuff with the Grid. It is packed with good features and once you get the hang of how to use it, it is nice to work with.

    Having said that I did stumble upon a problem when using the autowidth property in the Grid settings and I have a couple of questions regarding it:
    1. Is autowidth a supported feature?
    2. If it is supported, where is the documentation for it? What is it supposed to do?

    My understanding of this property, mainly based on its name I guess, was that the width of the Grid would resize based on the visible columns. It is also the desired behavior – at least for us.
    Well, it turns out that it did not. The Grid width remains the same when I show/hide columns. The reason for this is that hidden columns keep their width even though they are hidden. I wonder if this is a bug?

    We did come up with a workaround for when hiding a column. It involves temporarily storing a columns width value in its maxwidth property before setting the width to 0. Then, of course, using that when we call ‘showcolumn’ (and resetting the maxwidth to auto).

    Grid autowidth property #68620

    Peter Stoev
    Keymaster

    Hi Marcus Fredriksson,

    There is no such property in jqxGrid. Refer to jqxGrid API Documentation for available properties, methods and events.

    Best Regards,
    Peter Stoev

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

    Grid autowidth property #68624

    Marcus Fredriksson
    Participant

    Hi Peter,

    Thank you for your swift response!

    That is right, I could not find it in the documentation, but I saw it in some example and it is clearly doing something. The only thing that differs in these two examples is that one of them has autowidth: true (http://jsfiddle.net/9wow21sp/1/) and the other one does not (http://jsfiddle.net/jqwidgets/C3vQb/).

    In any case, I do think that it is a nice feature to have so why not implement it?

    Grid autowidth property #68631

    Peter Stoev
    Keymaster

    Hi Marcus Fredriksson,

    We’ll consider implementing it in future version. The first example you’re pointing out is not created by us. The second which is without “autowidth” is by us and that’s why it is with “jqwidgets” user profile.

    Best Regards,
    Peter Stoev

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

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

You must be logged in to reply to this topic.