jQWidgets Forums

jQuery UI Widgets Forums Grid Multiline Cells

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

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
  • Multiline Cells #102868

    dzimen
    Participant

    Hi, I have a multiline text, which I insert to Grid. I try use autorowheight but didn’t work in this case. I suspect, that Text is too long. When i tried via DataTable, Text show good. How Can I do?

    Multiline Cells #102874

    dzimen
    Participant

    I see empty cells : https://zapodaj.net/9d90d361befb4.png.html
    In programming console I see data: https://zapodaj.net/fc576c1a06679.png.html

    If I switch to DataTable, it works without any problem

    Multiline Cells #102894

    dzimen
    Participant

    Can you help me?

    Multiline Cells #102898

    Martin
    Participant

    Hello dzimen,

    Can you send us an example of how you are setting the Grid?
    The empty cells look like a data binding issue.
    Here is an Example of jqxGrid with autorowheight set to true and multiline cells.

    Best Regards,
    Martin

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

    Multiline Cells #102901

    dzimen
    Participant

    When I add the “autorowheight: true”, I has the same problem. Look photo: https://zapodaj.net/6594e612ee199.png.html

    This is my settings to Grid:
    “source: dataAdapter,
    altRows: true,
    autorowheight: true,
    filterable: true,
    height: 700,
    sortable: true,
    pageable: true,
    pagesizeoptions: [’10’, ’20’, ’50’, ‘100’, ‘1000’],
    theme: ‘fresh’,
    width: ‘100%’,
    showtoolbar: true,
    toolbarheight: 40,”

    Next I have a columns with this settings: cellsAlign: ‘center’, align: ‘center’

    Multiline Cells #102922

    Martin
    Participant

    Hello dzimen,

    Please, note that the autorowheight property requires that autoheight is also set to ‘true’.
    I see that you have used height: 700.

    Best Regards,
    Martin

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

    Multiline Cells #102924

    dzimen
    Participant

    I tryed this, but didn’t work. Look photo: https://zapodaj.net/33cc589478563.png.html
    I use height: 700 and autorowheigt in other file and it’s work, but in this file didn’t work.

    Multiline Cells #102940

    Martin
    Participant

    Hello dzimen,

    The autorowheight property requires that autoheight is set to ‘true’.
    Can you share your code in jsFiddle, for example.
    Just from this photo, we would not be able to help you much.

    Best Regards,
    Martin

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

    Multiline Cells #102942

    dzimen
    Participant
    Multiline Cells #102943

    dzimen
    Participant

    Data from database

    Multiline Cells #102974

    Martin
    Participant

    Hello dzimen,

    Actually, if you have set pageable to ‘true’ then you don’t need to have autoheight.
    I have tested your example, by changing the data source with localdata and got the cells to display.
    If your binding to the data from the database is correct, the issue may be that use you group as a datafield name but it is also a keyword so it causes an issue. I would suggest you to change it to ‘groupField’.

    Here is the Example updated.

    Best Regards,
    Martin

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

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

You must be logged in to reply to this topic.