0

Listbox with autopaging causes constant row flickering

asked 2014-06-25 20:35:33 +0800

jhook gravatar image jhook
21 2

updated 2014-06-25 20:43:28 +0800

Hi,

I'm using ZK 7.02 and have problem with a listbox. The listbox is in a border layout using vflex="1" and autopage. However, with certain data sets the autopaging seems to get confused and can't settle on the correct number of rows. It seems to be related to having rows of various sizes.

Here's some ZUL that you can put in the sandbox to reproduce the problem. Seems to happen most often if you load the page then go to the last page and start clicking previous page.

I'd really appreciate any suggestions. Sorry for the length of the code. Thanks, John

    <zk>
<borderlayout   height="500px">
    <north height="100px" >
        <div style="background:#E6D92C" vflex="1">
            <label value="north"    style="color:white;font-size:50px" />
        </div>
    </north>
    <center >
<listbox id="lstResults" context="resultGridContextMenu"  mold="paging" PagingPosition="top" autopaging="true"  vflex="1">
           <listhead id="lstHead" sizable="true"   >
                <listheader id = "COL_1" width="200px" label="Column 1"  />
                <listheader id = "COL_2" width="275px" label="Column 2"/>
            </listhead>

<listitem><listcell label="(Arachis hypogaea+Cow milk+Egg white+Gadus morhua+Glycine max+Triticum aestivum) Ab.IgE" /><listcell label="Food Allergen Mix 5 (Peanut+Cow milk+Egg white+Cod+Soybean+Wheat) IgE Ab [Presence] in Serum by Multidisk" /> </listitem>
<listitem><listcell label="(Arachis hypogaea+Cow milk+Egg white+Gadus morhua+Glycine max+Triticum aestivum) Ab.IgE" /><listcell label="Food Allergen Mix 5 (Peanut+Cow milk+Egg white+Cod+Soybean+Wheat) IgE Ab [Units/volume] in Serum by Multidisk" /> </listitem>
<listitem><listcell label="(Arachis hypogaea+Cow milk+Egg white+Gadus morhua+Glycine max+Triticum aestivum) Ab.IgE.RAST class" /><listcell label="Food Allergen Mix 5 (Peanut+Cow milk+Egg white+Cod+Soybean+Wheat) IgE Ab RAST class [Presence] in Serum by Multidisk" /> </listitem>
<listitem><listcell label="(Arachis hypogaea+Cow milk+Egg white+Glycine max+Triticum aestivum) Ab.IgE" /><listcell label="Food Allergen Mix A (Peanut+Cow milk+Egg white+Soybean+Wheat) IgE Ab [Presence] in Serum by Multidisk" /> </listitem>
<listitem><listcell label="(Arachis hypogaea+Cow milk+Egg white+Glycine max+Triticum aestivum+Oryza sativa) Ab.IgE" /><listcell label="Food Allergen Mix 7A (Peanut+Cow milk+Egg white+Soybean+Wheat+Rice) IgE Ab [Units/volume] in Serum by Multidisk" /> </listitem>
<listitem><listcell label="(Arachis hypogaea+Cow milk+Egg white+Mustard) Ab.IgE" /><listcell label="Food Allergen Mix 26 (Peanut+Cow milk+Egg white+Mustard) IgE Ab [Presence] in Serum by Multidisk" /> </listitem>
<listitem><listcell label="(Arachis hypogaea+Cow milk+Egg white+Mustard) Ab.IgE" /><listcell label="Food Allergen Mix 26 (Peanut+Cow milk+Egg white+Mustard) IgE Ab [Units/volume] in Serum by Multidisk" /> </listitem>
<listitem><listcell label="(Beef+Chicken meat+Egg yolk+Pork+Turkey meat) Ab.IgE" /><listcell label="Food Allergen Mix 10 (Beef+Chicken meat+Egg yolk+Pork+Turkey meat) IgE Ab [Presence] in Serum by Multidisk" /> </listitem>
<listitem><listcell label="About how often did you eat eggs, fried or scrambled in margarine, butter, or oil in past 12 Mo" /><listcell label="About how often did you eat eggs, fried or scrambled in margarine, butter, or oil in past 12 months [PhenX]" /> </listitem>
<listitem><listcell label="Donated egg" /><listcell label="Donated egg [Presence]" /> </listitem>
<listitem><listcell label="Egg white Ab.IgE" /><listcell label="Egg white IgE Ab [Units/volume] in Serum" /> </listitem>
<listitem><listcell label="Egg white Ab.IgE" /><listcell label="Egg white IgE Ab [Ratio] in Serum" /> </listitem>
<listitem><listcell label="Egg white Ab.IgE.RAST class" /><listcell label="Egg white IgE Ab RAST class [Presence] in Serum" /> </listitem>
<listitem><listcell label="Egg white Ab.IgG" /><listcell label="Egg white IgG Ab [Mass/volume] in Serum" /> </listitem>
<listitem><listcell label="Egg white Ab.IgG" /><listcell label="Egg white IgG Ab [Presence] in Serum" /> </listitem>
<listitem><listcell label="Egg white Ab.IgG" /><listcell label="Egg white IgG Ab [Units/volume] in Serum" /> </listitem>
<listitem><listcell label="Egg white Ab.IgG.RAST class" /><listcell label="Egg white IgG Ab RAST class [Presence] in Serum" /> </listitem>
<listitem><listcell label="Egg white Ab.IgG4" /><listcell label="Egg white IgG4 Ab [Units/volume] in Serum" /> </listitem>
<listitem><listcell label="Egg white Ab.IgG4" /><listcell label="Egg white IgG4 Ab [Mass/volume] in Serum" /> </listitem>
<listitem><listcell label="Egg white Ab.IgG4.RAST class" /><listcell label="Egg white IgG4 Ab RAST class [Presence] in Serum" /> </listitem>
<listitem><listcell label="Egg white basophil bound Ab" /><listcell label="Egg white triggered histamine release [Units/volume] in Blood" /> </listitem>
<listitem><listcell label="Egg white leukotriene release" /><listcell label="Egg white triggered leukotriene release [Mass/volume] by Leukocytes" /> </listitem>
<listitem><listcell label="Egg whole Ab.IgE" /><listcell label="Whole Egg IgE Ab [Ratio] in Serum" /> </listitem>
<listitem><listcell label="Egg whole Ab.IgE" /><listcell label="Whole Egg IgE Ab [Units/volume] in Serum" /> </listitem>
<listitem><listcell label="Egg whole Ab.IgE.RAST class" /><listcell label="Whole Egg IgE Ab RAST class [Presence] in Serum" /> </listitem>
<listitem><listcell label="Egg whole Ab.IgG" /><listcell label="Whole Egg IgG Ab [Mass/volume] in Serum" /> </listitem>
<listitem><listcell label="Egg whole Ab.IgG" /><listcell label="Whole Egg IgG Ab [Units/volume] in Serum" /> </listitem>
<listitem><listcell label="Egg whole Ab.IgG4" /><listcell label="Whole Egg IgG4 Ab [Mass/volume] in Serum" /> </listitem>
<listitem><listcell label="Egg whole basophil bound Ab" /><listcell label="Whole Egg triggered histamine release [Units/volume] in Blood" /> </listitem>
<listitem><listcell label="Egg yolk Ab.IgE" /><listcell label="Egg yolk IgE Ab [Units/volume] in Serum" /> </listitem>
<listitem><listcell label="Egg yolk Ab.IgE" /><listcell label="Egg yolk IgE Ab [Ratio] in Serum" /> </listitem>
<listitem><listcell label="Egg yolk Ab.IgE.RAST class" /><listcell label="Egg yolk IgE Ab RAST class [Presence] in Serum" /> </listitem>
<listitem><listcell label="Egg yolk Ab.IgG" /><listcell label="Egg yolk IgG Ab [Mass/volume] in Serum" /> </listitem>
<listitem><listcell label="Egg yolk Ab.IgG" /><listcell label="Egg yolk IgG Ab [Units/volume] in Serum" /> </listitem>
<listitem><listcell label="Egg yolk Ab.IgG.RAST class" /><listcell label="Egg yolk IgG Ab RAST class [Presence] in Serum" /> </listitem>
<listitem><listcell label="Egg yolk Ab.IgG4" /><listcell label="Egg yolk IgG4 Ab [Mass/volume] in Serum" /> </listitem>
<listitem><listcell label="Egg yolk basophil bound Ab" /><listcell label="Egg yolk triggered histamine release [Units/volume] in Blood" /> </listitem>
<listitem><listcell label="Egg yolk leukotriene release" /><listcell label="Egg yolk triggered leukotriene release [Mass/volume] by Leukocytes" /> </listitem>
<listitem><listcell label="How many times in the last Y have you begged for money or things from strangers" /><listcell label="How many times in the last year have you begged for money or things from strangers [PhenX]" /> </listitem>
<listitem><listcell label="Taenia sp eggs" /><listcell label="Taenia sp eggs [Presence] in Stool by DNA probe" /> </listitem>
<listitem><listcell label="Taenia sp eggs" /><listcell label="Taenia sp eggs [Presence] in Stool by Probe and target amplification method" /> </listitem>       


</listbox>

    </center>
    <south  height="100px" >
        <div style="background:#E6D92C" vflex="1">
            <label value="south"    style="color:white;font-size:50px" />
        </div>
    </south>

</borderlayout>
</zk>
delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-06-25 22:05:58 +0800

chillworld gravatar image chillworld flag of Belgium
5357 4 9
https://github.com/chillw...

Cause the length of your rows changes, the autopages see's that he can insert one more, then after added he see's no it can't and so on.

It may not happen but you can make a workaround. Use a paginal component and set a fix number of items for each page. :

http://zkfiddle.org/sample/1c5o0qm/1-paging-with-different-size-in-row

If you don't like the space in the bottom when you get to your small rows, I suggest set a fix height for each row so the autopaging doesn't get confused.

Greetz chill.

link publish delete flag offensive edit

Comments

Thank you very much for looking at my problem. I will consider your suggestion as a possible temporary work around. I actually feel that this is a bug is 7.02 and will submit a bug report.

jhook ( 2014-06-26 13:29:04 +0800 )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
2 followers

RSS

Stats

Asked: 2014-06-25 20:35:33 +0800

Seen: 18 times

Last updated: Jun 25 '14

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