jQWidgets Forums
jQuery UI Widgets › Forums › Grid › Multiline Cells
Tagged: cells, grid, long text, multiline cells
This topic contains 10 replies, has 2 voices, and was last updated by Martin 6 years, 4 months ago.
-
AuthorMultiline Cells Posts
-
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?
I see empty cells : https://zapodaj.net/9d90d361befb4.png.html
In programming console I see data: https://zapodaj.net/fc576c1a06679.png.htmlIf I switch to DataTable, it works without any problem
Can you help me?
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 withautorowheight
set to true and multiline cells.Best Regards,
MartinjQWidgets Team
http://www.jqwidgets.com/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’
Hello dzimen,
Please, note that the
autorowheight
property requires thatautoheight
is also set to ‘true’.
I see that you have usedheight: 700
.Best Regards,
MartinjQWidgets Team
http://www.jqwidgets.com/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.Hello dzimen,
The
autorowheight
property requires thatautoheight
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,
MartinjQWidgets Team
http://www.jqwidgets.com/Data from database
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,
MartinjQWidgets Team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.