jQWidgets Forums

jQuery UI Widgets Forums Grid jqxGrid Bug with Filterrow and columnsheight

This topic contains 4 replies, has 2 voices, and was last updated by  Klaus H 11 years, 7 months ago.

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

  • Klaus H
    Participant

    Hi,

    I am using version 3.0.3 and I looked at the fixes for 3.0.4 and it seems not to be implemented there.

    I have a grid with filterrow and a custom columnsheight. Now, when I enter a filter, the first result line is always hidden. My grid is also pageable, so I see the number of found results and it is correct. If I enter a complete value with just one result, the grid looks like there is no result at all, the paging mechanism tells me there is one result.

    The value of columnsheight does not seem to impact the behaviour, so whether I enter 20px or 40px, the first line is always missing. If I remove the filterrow option and use the default filter mechanism, the display is correct.

    These are the options I use:
    width: ‘100%’,
    columnsheight:’40px’,
    height: 530,
    source: Adapter,
    theme: theme,
    sortable: true,
    localization: localizationobj,
    showstatusbar: true,
    showaggregates: true,
    pageable: true,
    filterable: true,
    showfilterrow: true,
    pagesize: pagesize,
    pagesizeoptions: pagesizeoptions,

    Could you please look into that?

    Regards
    Klaus


    Peter Stoev
    Keymaster

    Hi Klaus,

    columnsheight expects a Number as a setting.

    Best Regards,
    Peter Stoev

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


    Klaus H
    Participant

    Hello Peter,

    thank you, that worked.

    But now that leads to another effect. I used a bigger columnshegiht because I want to use new line in the header text. You seem to calculate a top and bottom margin. For one line that looks fine and the text is centered. For a text with two lines, the first line is aligned as middle which leads to the second line not being displayed fully. Is there a option to set the vertical align to top in the header?

    Regards
    Klaus


    Peter Stoev
    Keymaster

    Hi Klaus,

    You can override the rendering of the column titles by using the “renderer” callback function of the column. See the second sample – http://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxgrid/jquery-grid-cellsrendering.htm

    Best Regards,
    Peter Stoev

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


    Klaus H
    Participant

    Hi Peter,

    thank you, I was not aware columnrenderer existed as of yet, only cellrenderer. That fixes the problems. 🙂

    Regards
    Klaus

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

You must be logged in to reply to this topic.