0

How to disable the grid lines in the grid?

asked 2009-07-30 07:04:33 +0800

baskaraninfo gravatar image baskaraninfo
536 2 2 9

I have disabled the striping but I also need to disable the grid lines in the grid component?

The code I have used for this:
<grid fixedLayout="true" oddRowSclass="none">
<columns menupopup="auto" visible="false">
<column label="Author" width="5%" align="center" />
<column label="Title" width="5%" />
<column label="Publisher" width="20%" />
<column label="Hardcover" width="70%" />
</columns>
<rows>
<row>
<label value="Philip Hensher" />
<label value="The Northern Clemency" />
<label value="Knopf (October 30, 2008)" />
<label value="608 pages" />
</row>
</rows>
</grid>

Can we able to disable the grid lines in the grid?

Thanks.

delete flag offensive retag edit

5 Replies

Sort by ยป oldest newest

answered 2009-07-30 09:18:41 +0800

baskaraninfo gravatar image baskaraninfo
536 2 2 9

I have used the following style to disable the grid lines in grid component:

<style>tr.z-row td.z-row-inner { border: none; }</style>

link publish delete flag offensive edit

answered 2009-07-30 11:03:43 +0800

deved gravatar image deved
114 1

<grid oddRowSclass="none">

link publish delete flag offensive edit

answered 2009-07-30 11:45:49 +0800

baskaraninfo gravatar image baskaraninfo
536 2 2 9

Hi deved,

<grid oddRowSclass="none"> is used to set the stiping off. That is, as default grid has odd number rows in different colour than even number rows. To set this off, we need to use the code given by you.

But, to disable the grid-lines in the grid, we need to specify the style as mentioned above in my previous post.

Thanks.

link publish delete flag offensive edit

answered 2009-07-31 03:59:06 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

Hi,

Using zclass solves it.

<grid fixedLayout="true" zclass="none">
<columns menupopup="auto" visible="false">
<column label="Author" width="5%" align="center" />
<column label="Title" width="5%" />
<column label="Publisher" width="20%" />
<column label="Hardcover" width="70%" />
</columns>
<rows>
<row  zclass="none">
<label value="Philip Hensher" />
<label value="The Northern Clemency" />
<label value="Knopf (October 30, 2008)" />
<label value="608 pages" />
</row>
</rows>
</grid>

/Jumper

link publish delete flag offensive edit

answered 2009-07-31 05:01:40 +0800

baskaraninfo gravatar image baskaraninfo
536 2 2 9

updated 2009-07-31 06:00:05 +0800

zclass="none" is useful only when there is only one row of fields as in our example, if there are multiple rows, then there is no space between two subsequent rows.

In those case, <style>tr.z-row td.z-row-inner { border: none; }</style> is used to set the border (ie., grid lines as none), but grid's row separation is there.

Thanks jumperchen :)

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-07-30 07:04:33 +0800

Seen: 458 times

Last updated: Jul 31 '09

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