You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by mo...@comcast.net on 2013/06/06 22:26:44 UTC

possible to make spark datagrid column separator appear behind cell contents?

Spark DataGrid column separators always appear on top of the cell (text) contents. 

Can anyone think of a way to either: 

1. Place the column separator behind the cell contents. 
2. Eliminate the column separator (e.g. alpha=0) for specific rows. 

I want to create the illusion of spanned rows in spark DataGrid using simple techniques (e.g. reliable techniques).

I found I can use a link button in such a way that it spans multiple columns, so the text contents when placed in the first column will extend into the second column if its text is sufficiently large.

Now I just need a way to make sure the column separator doesn't appear over it.


I want something like:

-------------------------------
| col 1  |  col 2  |   col 3  |
-------------------------------
| blah   |  blah   |  blah    |
-------------------------------
| my subheading here          |
-------------------------------
| blah   |  blah   |  blah    |
-------------------------------

instead of the current situation:

-------------------------------
| col 1  |  col 2  |   col 3  |
-------------------------------
| blah   |  blah   |  blah    |
-------------------------------
| my subh|eading he|re        |
-------------------------------
| blah   |  blah   |  blah    |
-------------------------------

Note: I don't want to use ADG. 







Re: possible to make spark datagrid column separator appear behind cell contents?

Posted by mo...@comcast.net.
Thanks so much! This was the first thing I attempted to do, but I didn't know how to place the separator after the cell contents. Your code snipped below helped a lot, to show me where in the skin I needed to make the change. Works great!

----- Original Message -----
From: "Jagan Langa Sami Durai" <ja...@sybrant.com>
To: users@flex.apache.org
Sent: Friday, June 7, 2013 4:37:06 AM
Subject: Re: possible to make spark datagrid column separator appear behind cell contents?

try to use the datagrid's skin class,

something like below (switch the layers)


                    <!--- @private -->
<s:Grid id="grid" itemRenderer="spark.skins.spark.DefaultGridItemRenderer">

<s:GridLayer name="backgroundLayer"/>
<s:GridLayer name="selectionLayer"/>
<s:GridLayer name="editorIndicatorLayer"/>
*<s:GridLayer name="overlayLayer"/>                          *
<s:GridLayer name="rendererLayer"/>

</s:Grid>



On Fri, Jun 7, 2013 at 10:24 AM, Raj U. Shaikh <Ra...@mastek.com>wrote:

> +1, I too in same situation.
>
> Thanks & Regards,
> Raj Shaikh
>
> -----Original Message-----
> From: modjklist@comcast.net [mailto:modjklist@comcast.net]
> Sent: Friday, June 07, 2013 1:57 AM
> To: users@flex.apache.org
> Subject: possible to make spark datagrid column separator appear behind
> cell contents?
>
> Spark DataGrid column separators always appear on top of the cell (text)
> contents.
>
> Can anyone think of a way to either:
>
> 1. Place the column separator behind the cell contents.
> 2. Eliminate the column separator (e.g. alpha=0) for specific rows.
>
> I want to create the illusion of spanned rows in spark DataGrid using
> simple techniques (e.g. reliable techniques).
>
> I found I can use a link button in such a way that it spans multiple
> columns, so the text contents when placed in the first column will extend
> into the second column if its text is sufficiently large.
>
> Now I just need a way to make sure the column separator doesn't appear
> over it.
>
>
> I want something like:
>
> -------------------------------
> | col 1  |  col 2  |   col 3  |
> -------------------------------
> | blah   |  blah   |  blah    |
> -------------------------------
> | my subheading here          |
> -------------------------------
> | blah   |  blah   |  blah    |
> -------------------------------
>
> instead of the current situation:
>
> -------------------------------
> | col 1  |  col 2  |   col 3  |
> -------------------------------
> | blah   |  blah   |  blah    |
> -------------------------------
> | my subh|eading he|re        |
> -------------------------------
> | blah   |  blah   |  blah    |
> -------------------------------
>
> Note: I don't want to use ADG.
>
>
>
>
>
>
> MASTEK LTD.
> In the US, we're called MAJESCOMASTEK
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Opinions expressed in this e-mail are those of the individual and not that
> of Mastek Limited, unless specifically indicated to that effect. Mastek
> Limited does not accept any responsibility or liability for it. This e-mail
> and attachments (if any) transmitted with it are confidential and/or
> privileged and solely for the use of the intended person or entity to which
> it is addressed. Any review, re-transmission, dissemination or other use of
> or taking of any action in reliance upon this information by persons or
> entities other than the intended recipient is prohibited. This e-mail and
> its attachments have been scanned for the presence of computer viruses. It
> is the responsibility of the recipient to run the virus check on e-mails
> and attachments before opening them. If you have received this e-mail in
> error, kindly delete this e-mail from desktop and server.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>



-- 
*
Regards,
S. Jagan  Langa*

Re: possible to make spark datagrid column separator appear behind cell contents?

Posted by Jagan Langa Sami Durai <ja...@sybrant.com>.
try to use the datagrid's skin class,

something like below (switch the layers)


                    <!--- @private -->
<s:Grid id="grid" itemRenderer="spark.skins.spark.DefaultGridItemRenderer">

<s:GridLayer name="backgroundLayer"/>
<s:GridLayer name="selectionLayer"/>
<s:GridLayer name="editorIndicatorLayer"/>
*<s:GridLayer name="overlayLayer"/>                          *
<s:GridLayer name="rendererLayer"/>

</s:Grid>



On Fri, Jun 7, 2013 at 10:24 AM, Raj U. Shaikh <Ra...@mastek.com>wrote:

> +1, I too in same situation.
>
> Thanks & Regards,
> Raj Shaikh
>
> -----Original Message-----
> From: modjklist@comcast.net [mailto:modjklist@comcast.net]
> Sent: Friday, June 07, 2013 1:57 AM
> To: users@flex.apache.org
> Subject: possible to make spark datagrid column separator appear behind
> cell contents?
>
> Spark DataGrid column separators always appear on top of the cell (text)
> contents.
>
> Can anyone think of a way to either:
>
> 1. Place the column separator behind the cell contents.
> 2. Eliminate the column separator (e.g. alpha=0) for specific rows.
>
> I want to create the illusion of spanned rows in spark DataGrid using
> simple techniques (e.g. reliable techniques).
>
> I found I can use a link button in such a way that it spans multiple
> columns, so the text contents when placed in the first column will extend
> into the second column if its text is sufficiently large.
>
> Now I just need a way to make sure the column separator doesn't appear
> over it.
>
>
> I want something like:
>
> -------------------------------
> | col 1  |  col 2  |   col 3  |
> -------------------------------
> | blah   |  blah   |  blah    |
> -------------------------------
> | my subheading here          |
> -------------------------------
> | blah   |  blah   |  blah    |
> -------------------------------
>
> instead of the current situation:
>
> -------------------------------
> | col 1  |  col 2  |   col 3  |
> -------------------------------
> | blah   |  blah   |  blah    |
> -------------------------------
> | my subh|eading he|re        |
> -------------------------------
> | blah   |  blah   |  blah    |
> -------------------------------
>
> Note: I don't want to use ADG.
>
>
>
>
>
>
> MASTEK LTD.
> In the US, we're called MAJESCOMASTEK
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Opinions expressed in this e-mail are those of the individual and not that
> of Mastek Limited, unless specifically indicated to that effect. Mastek
> Limited does not accept any responsibility or liability for it. This e-mail
> and attachments (if any) transmitted with it are confidential and/or
> privileged and solely for the use of the intended person or entity to which
> it is addressed. Any review, re-transmission, dissemination or other use of
> or taking of any action in reliance upon this information by persons or
> entities other than the intended recipient is prohibited. This e-mail and
> its attachments have been scanned for the presence of computer viruses. It
> is the responsibility of the recipient to run the virus check on e-mails
> and attachments before opening them. If you have received this e-mail in
> error, kindly delete this e-mail from desktop and server.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>



-- 
*
Regards,
S. Jagan  Langa*

RE: possible to make spark datagrid column separator appear behind cell contents?

Posted by "Raj U. Shaikh" <Ra...@mastek.com>.
+1, I too in same situation.

Thanks & Regards,
Raj Shaikh

-----Original Message-----
From: modjklist@comcast.net [mailto:modjklist@comcast.net] 
Sent: Friday, June 07, 2013 1:57 AM
To: users@flex.apache.org
Subject: possible to make spark datagrid column separator appear behind cell contents?

Spark DataGrid column separators always appear on top of the cell (text) contents. 

Can anyone think of a way to either: 

1. Place the column separator behind the cell contents. 
2. Eliminate the column separator (e.g. alpha=0) for specific rows. 

I want to create the illusion of spanned rows in spark DataGrid using simple techniques (e.g. reliable techniques).

I found I can use a link button in such a way that it spans multiple columns, so the text contents when placed in the first column will extend into the second column if its text is sufficiently large.

Now I just need a way to make sure the column separator doesn't appear over it.


I want something like:

-------------------------------
| col 1  |  col 2  |   col 3  |
-------------------------------
| blah   |  blah   |  blah    |
-------------------------------
| my subheading here          |
-------------------------------
| blah   |  blah   |  blah    |
-------------------------------

instead of the current situation:

-------------------------------
| col 1  |  col 2  |   col 3  |
-------------------------------
| blah   |  blah   |  blah    |
-------------------------------
| my subh|eading he|re        |
-------------------------------
| blah   |  blah   |  blah    |
-------------------------------

Note: I don't want to use ADG. 






MASTEK LTD.
In the US, we're called MAJESCOMASTEK

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from desktop and server.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~