0

scroll listbox problem

asked 2009-09-03 09:33:04 +0800

smigol gravatar image smigol flag of Italy
316 2

updated 2009-09-03 09:45:10 +0800

Hi, I've a bit big problem; I'm trying to use the paging component associated with the listbox component inside a panel component. OK, If the listbox has many listitem appears vertical scrollbar but the arrow at the bottom of the vertical scrollbar is not visible!
Now, if I'm trying to remove paging component the arrow at the bottom of the vertical scrollbar is visible!!!!!

following, I carry code samples that I use:

sample 1 with paging component:

<?page title="new page title" contentType="text/html;charset=UTF-8"?>
<zk>
	<window title="new page title" border="normal" width="100%"
		height="100%">
		<borderlayout>
			<north style="width:100%;height:200px;">NORTH</north>
			<center style="width:100%;height:100%;">				
				<panel title="listbox" style="width:100%;height:100%;">					
					<panelchildren>		
						<paging/>
						<listbox id="dataList"
							fixedLayout="true" vflex="true">
							<listhead>
								<listheader label="id" />
								<listheader
									label="utente" />
								<listheader label="ip" />
								<listheader
									label="sessionid" />
								<listheader
									label="data" />
								<listheader
									label="livello" />
								<listheader
									label="locazione" />
								<listheader
									label="messaggio" />
							</listhead>
						</listbox>
							<zscript>
								<![CDATA[
								for (int i = 1; i <= 50; i++) {
									Listitem li = new Listitem();
									for (int j = 1; j <= 8; j++) {
										new Listcell("item: " + j).setParent(li);
									}
									li.setParent(dataList);
								}
								]]>
							</zscript>
					</panelchildren>
				</panel>									
			</center>
			<south style="width:100%;height:100px;">SOUTH</south>
		</borderlayout>
	</window>
</zk>



sample 2 without paging component:
<?page title="new page title" contentType="text/html;charset=UTF-8"?>
<zk>
	<window title="new page title" border="normal" width="100%"
		height="100%">
		<borderlayout>
			<north style="width:100%;height:200px;">NORTH</north>
			<center style="width:100%;height:100%;">				
				<panel title="listbox" style="width:100%;height:100%;">					
					<panelchildren>
						<listbox id="dataList"
							fixedLayout="true" vflex="true">
							<listhead>
								<listheader label="id" />
								<listheader
									label="utente" />
								<listheader label="ip" />
								<listheader
									label="sessionid" />
								<listheader
									label="data" />
								<listheader
									label="livello" />
								<listheader
									label="locazione" />
								<listheader
									label="messaggio" />
							</listhead>
						</listbox>
							<zscript>
								<![CDATA[
								for (int i = 1; i <= 50; i++) {
									Listitem li = new Listitem();
									for (int j = 1; j <= 8; j++) {
										new Listcell("item: " + j).setParent(li);
									}
									li.setParent(dataList);
								}
								]]>
							</zscript>
					</panelchildren>
				</panel>									
			</center>
			<south style="width:100%;height:100px;">SOUTH</south>
		</borderlayout>
	</window>
</zk>




how can I solve this problem and bring up the arrow? I think you have the same problem using the component grid associated with the component paging!

I USE:
- FIREFOX 3.5.2
- ZK RELEASES 3.6.2

thank you very much!

ORAZIO

delete flag offensive retag edit

8 Replies

Sort by ยป oldest newest

answered 2009-09-03 13:20:22 +0800

YamilBracho gravatar image YamilBracho
1722 2

Change
listbox id="dataList"
fixedLayout="true" vflex="true">

to

listbox id="dataList"
fixedLayout="true" vflex="true" style="overflow:scroll;">

link publish delete flag offensive edit

answered 2009-09-03 14:21:09 +0800

smigol gravatar image smigol flag of Italy
316 2

i m trying ur workround, but not work very well in all browser:
- FF 3.5.2: view 1/3 about bottom arrow!
- IE7: no view bottom arrow!
- Chrome: view 1/3 about bottom arrow!
- Opera 9.64: view 1/3 about bottom arrow!
- Safari 4: view 1/3 about bottom arrow!

thans very much :-(

Orazio

link publish delete flag offensive edit

answered 2009-09-03 14:25:37 +0800

smigol gravatar image smigol flag of Italy
316 2

also as well, disappeared the head of the listbox! :****-(((
THANKS VERY MUCH

link publish delete flag offensive edit

answered 2009-09-03 14:47:48 +0800

YamilBracho gravatar image YamilBracho
1722 2

I tested with Google Chrome 2.0.173.1 and FF 3.52 getting results as you got
In IE 6.0. Does no appear any scrollbar...!
But any head disappears...!

Please test by adding a height to the listbox def
istbox id="dataList"
fixedLayout="true" vflex="true" style="overflow:scroll;" height="92%">

link publish delete flag offensive edit

answered 2009-09-04 10:27:09 +0800

smigol gravatar image smigol flag of Italy
316 2

thanks for your advice @YamilBracho, I solved the problem even if partially!!
if I resize the window, even a little, unfortunately, the arrow disappears entirely or partially
I think this is a bug of the components listbox and grid when using the properties fixedLayout="true" and vflex="true"

ORAZIO

link publish delete flag offensive edit

answered 2009-09-04 21:44:21 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

Orazio

take a try with the following construction:
you must adapt it to your needs.


		<borderlayout id="borderLayout_customerList">

			<north border="none" height="26px">
				<paging id="pagingCustomerList" pageSize="20" />
			</north>

			<center border="normal">

				<listbox id="listBoxCustomer" vflex="true"
					tooltiptext="${c:l('listbox.tooltiptext')}" width="99.5%"
					height="100%" multiple="false">
					<listhead sizable="true">
						<listheader id="listheader_CustNo"
							image="/images/icons/builder.gif"
							label="${c:l('listheader_CustNo.label')}" sort="auto" width="5%" />
						<listheader id="listheader_CustMatchcode"
							image="/images/icons/create_doc.gif"
							label="${c:l('listheader_CustMatchcode.label')}" sort="auto"
							width="15%" />
						<listheader id="listheader_CustName1"
							image="/images/icons/create_doc.gif"
							label="${c:l('listheader_CustName1.label')}" sort="auto"
							width="20%" />
						<listheader id="listheader_CustName2"
							image="/images/icons/create_doc.gif"
							label="${c:l('listheader_CustName2.label')}" sort="auto"
							width="20%" />
						<listheader id="listheader_CustCity"
							image="/images/icons/home_blue16x16.gif"
							label="${c:l('listheader_CustCity.label')}" sort="auto"
							width="20%" />
						<listheader
							image="/images/icons/edittsk_tsk1.gif" label="Mahnsperre"
							width="10%" />
					</listhead>
				</listbox>

			</center>

			<south border="none">
				<separator />
			</south>

		</borderlayout>

regards
Stephan

link publish delete flag offensive edit

answered 2009-09-08 06:37:27 +0800

smigol gravatar image smigol flag of Italy
316 2

Thanks very much Stephan, your construction work fine!!

regards
Orazio

link publish delete flag offensive edit

answered 2009-09-08 21:49:17 +0800

smigol gravatar image smigol flag of Italy
316 2

Hi Stephan,
Considering the theme "listbox & scroll", I would like to present you another ''anomaly'' (I have noticed this problem during my work, as well as in ''ZK Live Demo >> ListBox Live Data"):
In "ZK Live Demo >> ListBox Live Data", there are 10 items visible (0 to 9) and other hidden (total 30); ok, if you move down with arrow key,10+1 items selected could be seen (the other ones seem to be hidden).
In my example, I have 16 items visible, I scrolling down with arrow key I can see 16+1, and for the other items (total 40) there is the same problem.
How can I synchronize vertical scrollbar with select item with arrow key?
I hope you understand me!

best regards
Orazio

link publish delete flag offensive edit
Your reply
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: 2009-09-03 09:33:04 +0800

Seen: 718 times

Last updated: Sep 08 '09

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