0

wrong menupopup value when filter columns with multiline value

asked 2020-01-30 19:34:48 +0800

ogc2019 gravatar image ogc2019
3 1

Hi.

I have a listbox with columns and some columns needs to be multiline. To solve this I use this code:

<listheader hflex="min" align="center" label="Text in a single line" />
<listheader hflex="min" align="center">
                <label multiline="true"
                    value="@load(vm.columnValue)">
                </label>
            </listheader>

And in the view model I have:

private String columnValue = "Text in first line \n text in second line";

This works fine and I show the column with multiline value but my problem is when i need to filter the listbox columms. My listhead has:

<listhead sizable="true" menupopup="auto">

and when i click in the small arrow in the colum to show all column name and filter some columns i don`t see the labels for multiline columns. I see two checkbox, first one with value "Text in a single line" and second without any text.

Do you have any idea to help me to solve the problem ? I need to see multiline values in the menu popup to filter columns

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2020-01-31 15:13:28 +0800

hawk gravatar image hawk
3185 1 5
http://hawkphoenix.blogsp... ZK Team

please see the example http://zkfiddle.org/sample/2h27u86/2-listheader-with-line-break

key points: white-space: pre;

link publish delete flag offensive edit
0

answered 2020-02-05 21:53:31 +0800

ogc2019 gravatar image ogc2019
3 1

Thanks so much !!!

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2020-01-30 19:34:48 +0800

Seen: 6 times

Last updated: Feb 05 '20

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More