jQWidgets Forums

jQuery UI Widgets Forums Grid "autorowheight" but selectively

This topic contains 4 replies, has 2 voices, and was last updated by  zorgoz 10 years, 6 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • "autorowheight" but selectively #61562

    zorgoz
    Participant

    I have a grid where I need to handle row autoheight differently on column basis. That means, if in row X text in columns Y or Z requires wrapping, that row height should be increased, but if those fit, and any other columns have overflowing text, the ellipsis is just perfect for them. Of course, if a row’s height is raised because of any of columns Y or Z, all others columns in that row might be wrapped too.

    How could this be achieved?

    And, If I use autoheight, it is not enlarging the row properly, only two rows of the content are displayed, the rest is cut. How can this be corrected?

    "autorowheight" but selectively #61568

    Peter Stoev
    Keymaster

    Hello zorgoz,

    autoheight simply makes the Grid to display all data rows without scrolling. what you are looking for is called autorowheight – http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/columnshierarchy.htm?arctic

    Best Regards,
    Peter Stoev

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

    "autorowheight" but selectively #61604

    zorgoz
    Participant

    Sorry, i wrote autoheight, but I meant and I tried autorowheight. The questions are the same.
    The first question is more or less a “nice to have” thing, but the second one is an issue!

    And I have new details regarding that one. First of all, I have set autorowheight to true. And it looks like it is working, but it is not. In the row there is a cell, that is wrapped in two rows. The content is comming directly from the server. The row height is correctly calculated so that those two rows fit. But there is an other cell in the row, that is generated using the cellrenderer callback. This later one is resulting in a three row text. But the row height does not take this into consideration, only the other one. Can I force somehow the recalculation of the row height from the cellrenderer?

    Thank you in advance,

    "autorowheight" but selectively #61632

    zorgoz
    Participant

    Oh, and a new problem in the same context: the result of the cellrenderer is not exported. I have debugged, and the cellrenderers are called when export is initiated, but the constructed xml has no data in those cells.

    "autorowheight" but selectively #61690

    zorgoz
    Participant

    Now I see the problem 🙁
    One can not use cellrenderer to generate content. It is merely for applyig some styling. The layout engine is taking only the original field content into account – if there is any associated data field. If not, it is treated as empty cell – even if cellrenderer is returning meaningfull data. This way of working should be mentioned in the documentation.

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

You must be logged in to reply to this topic.