0

Tree horizontal scrolling Issue

asked 2011-10-11 08:09:13 +0800

siva477 gravatar image siva477
57

Hi,

I have a problem with TREE Horizontal scrolling.I already used " AutoScroll " and "setSizedByContent()" methods. But these are not applicable for horizontal scrolling. Please give me suggestions to solve this Issue.

Thanks & Regards,
Siva Kumar

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2011-10-12 01:39:39 +0800

matthewgo gravatar image matthewgo
375

updated 2011-10-12 01:40:25 +0800

Hi
Need to specify the width(or vflex) and sizebycontent in the tree
The following works in zk 5.08

<tree id="tree" height="200px" width="100px" rows="8" sizedByContent="true" >
	<treecols  >
		<treecol label="Namexxx" />
	</treecols>
	<treechildren>
		<treeitem>
			<treerow>
				<treecell label="Item 2" />
			</treerow>
			<treechildren>
				<treeitem open="false">
					<treerow >
						<treecell label="Item 2.1" />
					</treerow>
					<treechildren>
						<treeitem open="false">
							<treerow>
								<treecell label="Item 2.1.1" />
							</treerow>
							<treechildren>
								<treeitem open="false">
									<treerow>
										<treecell label="Item 2.1.1" />
									</treerow>
									<treechildren>
										<treeitem open="false">
											<treerow>
												<treecell
													label="Item 2.1.1" />
											</treerow>
											<treechildren>
												<treeitem open="false">
													<treerow>
														<treecell
															label="Item 2.1.1" />
													</treerow>
													<treechildren>
														<treeitem open="false">
															<treerow>
																<treecell
																	label="Item 2.1.1" />
															</treerow>
																													</treeitem>
													</treechildren>
												</treeitem>
											</treechildren>
										</treeitem>
									</treechildren>
								</treeitem>
							</treechildren>
						</treeitem>
					</treechildren>
				</treeitem>
			</treechildren>
		</treeitem>
	</treechildren>
</tree>

link publish delete flag offensive edit

answered 2011-10-12 03:43:43 +0800

siva477 gravatar image siva477
57

updated 2011-10-12 05:35:11 +0800

Hi,

Thanks for Information . Presently I am using ZK 5.0.7 version. May be It will rectify in Version Update.

Your code is working fine . But ,

Here You are declaring tree as a STATIC functionality in ZUL file. But we are trying to define it dynamically in controller. So it is not working those attributes, what you said earlier.

So , Please give me any example code for dynamically creating tree.

Thanks in Advance

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: 2011-10-11 08:09:13 +0800

Seen: 255 times

Last updated: Oct 12 '11

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