issue with text wrapping when scrolling data

Answered
Eric Malalel asked on November 11, 2022

I use a JSON data source where one field contains strings such as;
|group 1||group 2||....|group n|
I use the customizeCell function to display each cell for this field on multiple lines such as:
group 1
group 2
...
group N
Now I would like to adjust the height of the cell so all groups are displayed.
I have implemented what is documented here :
https://www.flexmonster.com/question/text-wrapping-in-grid-cell/
It works fine on initial display, but if I scroll too much, the new rows which appear in the grid have their default height, they are not updated.
Please advise.

4 answers

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster November 15, 2022

Hello, Eric.

Hope you are doing well.

Our team is currently working on your question and will be back to you tomorrow.

Regards,
Solomiia

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster November 16, 2022

Hello, Eric.

Thank you for giving us some time.

Kindly note that we do not recommend using multiline in Flexmonster.
There is a possible approach of adjusting the cell height using a couple of CSS rules, but it also has limitations: https://jsfiddle.net/flexmonster/Ljqu60gx/. Also, please note that multiline for the flat form is strongly not recommended.

Hope you will find our answer helpful.

Regards,
Nadia

Public
Eric Malalel November 18, 2022

Ok, so let's forget about multilines and keep it simple, by displaying the field 'as is'.
You can close this ticket.

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster November 21, 2022

Hi, 

Thank you for the feedback.

As always, feel free to contact us if other questions arise.

Kind regards,
Nadia

Please login or Register to Submit Answer