-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Source Code
I have helped me with the grid lines with following style changes in the zul file:
<window id="window_customerDialog" . . . <style> . . . <!-- cut/hide the vertical borders in the grid rows --> tr.z-row td.z-row-inner { border-right: 0px #CCC; } . . . </style> <borderlayout id="borderlayoutCustomer"> <north border="none" margins="0,0,0,0"> <grid> <columns sizable="true" height="20px"> . . .
best
Stephan
Hi Stephan,
Thankyou very much for your valuable suggestion. After reading your code I have got an basic idea of how to override the style class property. I have applied the style suggested by you, now my vertical lines are invisible. Let me try to hide horizontal and odd row bacground color.
Once again thanks.
Today I found your zkSample2 Application. I dowloaded zkoss-v2-0.war and copied into $TOMCAT_HOME/webapps folder. Start Application Server and access the URL http://localhost:8080/zkoss-v2-0
I am getting error. Is required any special configuration in Tomcat apart from auto deployment.
Thanks
Abhi
Hmmmmmmm, i have downloaded yet and started on local Tomcat. It runs very well.
What is your errorstack ?
best
Stephan
Hi Stephan,
I have resolved the issues. The problem is JDK version 1.5
I replaced by JDK 1.6. It is successfully deployed. The application runs well.
Also, I have helped me to hide the entire grid border and odd row background color. Now my UI Looks great. However, the style affects other grids on the same page. My page has parent-child relationship. I am trying to hide grid cell lines only for parent, but it affects the child grid also.
How to use the style properties only the required grid? Is possible to create a grid layout component by ZK team.
Is there any other component available to build a form similar to Grid?
Sorry, I think I have asked too much
Thanks
Abhi
You can give your piece of the style a 'name'
<style dynamic="true"> <!-- cut/hide the vertical borders in the grid rows --> .myGridWithNoBorder tr.z-row td.z-row-inner { border-right: 0px #CCC; } </style> <grid sclass="myGridWithNoBorder"
best
Stephan
PS: Please post your ready style here.
Hi Stephan,
Tens of thanks.
Now I achieved the expected result. You are my Guru (i.e. Teacher).
I am new to ZK Framework.
Here is my ready style...
<zk>
<style dynamic="true">
<!-- Make Plain Grid -->
.GridLayoutNoBorder tr.z-row td.z-row-inner, tr.z-row .z-cell,div.z-grid
{
border: none;
overflow: hidden;
zoom: 1;
background: white;
border-top: none;
border-left: none;
border-right: none;
border-bottom: none;
}
</style>
<grid sclass="GridLayoutNoBorder">
</grid>
</zk>
Thanks for sharing your code.
Hi, How I can take the border off a <cell>?
Asked: 2010-02-25 00:33:39 +0800
Seen: 5,512 times
Last updated: Jan 03 '13