jQWidgets Forums

jQuery UI Widgets Forums Grid grid autoresizecolumns not working

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • grid autoresizecolumns not working #19837

    onefortypoint6
    Participant

    Hi,

    jqxgrid 2.8.1

    Everything seems fine, cellsrendering correctly (no null values), etc., but the columns won’t auto-resize:

    $(‘#jqxgrid’).jqxGrid(‘autoresizecolumns’);

    Without posting my massive grid and code, is there a top 5 list of a reason why a grid wouldn’t auto resize?

    grid autoresizecolumns not working #19839

    Peter Stoev
    Keymaster

    Hi,

    I do not know what could be the reason on your side. If you use custom cells rendering, the Grid will not auto-resize your columns. If that is not the reason, I suggest you to send a small sample which demonstrates the described behavior. You can post it here or send it to support@jqwidgets.com

    Best Regards,
    Peter Stoev

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

    grid autoresizecolumns not working #19857

    onefortypoint6
    Participant

    Thanks Peter, that must be it. I am using custom cells rendering to change the background color on a single column of data.

    Any insight you think of will be helpful. I am looking for a solution that will change the background color of cells in column A, based on the data results from column B. Currently I am using custom cell rendering, but also would like to have all of the grid’s columns auto resize.

    So I suppose the question is, is there any CSS trickery I can use to change the background color of one column, based on another columns results (without cell rendering)?

    Thanks in advance

    grid autoresizecolumns not working #19873

    Peter Stoev
    Keymaster

    Hi,

    To change the color of a column, please take a look at this post: http://www.jqwidgets.com/datagrid-column-with-custom-css-styling/

    You can then dynamically change the column property after that by using the “setcolumnproperty” method of jqxGrid.

    Best Regards,
    Peter

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

You must be logged in to reply to this topic.