Re: [flexcoders] Re: Flex 1.5 Question

2007-04-13 Thread Jatin Nanda

Thanks Alex, I will give that a go as well.
Thanks to all for your assistance on this.

Cheers,

J

On 12 Apr 2007 09:47:50 -0700, Alex Harui [EMAIL PROTECTED] wrote:


   OK.  FWIW, you could go back to UIComponent and use beginFill,
moveTo/lineTo/endFill to draw the background yourself.  It will be slightly
faster and smaller than using VBox.

 --
*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On
Behalf Of *Jatin Nanda
*Sent:* Thursday, April 12, 2007 3:34 AM
*To:* [EMAIL PROTECTED]
*Subject:* Re: [flexcoders] Re: Flex 1.5 Question

 Hi Doug, Alex,

Thx for your emails. Got it to work, I just changed my cell renderer from
extending UIComponent to extending VBox. Thanks for the hint :-)

Cheers,

J

On 11 Apr 2007 17:59:53 -0700, Doug Lowder  [EMAIL PROTECTED]
wrote:

   Ah, sorry, I missed the fact that it was for a single cell instead of
 the entire row.

 So do you already have a cell renderer based on something like HBox,
 and if so have you tried setting the backgroundColor property? What
 happened? I would think that should work. I'll see if I can put
 together a working example.

 --- In [EMAIL PROTECTED] flexcoders%40yahoogroups.com, Jatin
 Nanda [EMAIL PROTECTED] wrote:
 
  HI Doug,
 
  Thanks for the tip - but unfortunately it affects the whole row, not
 just
  one cell ...
 
  Tried changing the bgcolor, which doesn't seem to work either. Any
 other
  thoughts?
 
  Thanks in advance,
 
  J
 
  On 11 Apr 2007 12:58:15 -0700, Doug Lowder [EMAIL PROTECTED] wrote:
  
   In 1.5, you can do this directly from the datagrid with the
   setPropertiesAt() method - no cell renderer required.
  
   myGrid.setPropertiesAt(rowIndex, {backgroundColor: 0xFF});
  
   If you must use a cellrenderer, just set the background of your
   container (canvas, hbox, or what have you) in the setValue() method,
   based on the row data.
  
   --- In [EMAIL PROTECTED] 
flexcoders%40yahoogroups.comflexcoders%40yahoog
 roups.com,
 Jatin
   Nanda jatin.nanda@
  
   wrote:
   
Dear All,
   
I need to know how you use a custom cell renderer to change the
background colour of a cell in a grid.
   
Plenty of exampled for Flex 2.0, but I need to do it in Flex 1.5
   
Know anyone who might have an answer?
   
Thanks in advance,
   
   
J
   
  
  
  
 


  



Re: [flexcoders] Re: Flex 1.5 Question

2007-04-12 Thread Jatin Nanda

Hi Doug, Alex,

Thx for your emails. Got it to work, I just changed my cell renderer from
extending UIComponent to extending VBox. Thanks for the hint :-)

Cheers,

J

On 11 Apr 2007 17:59:53 -0700, Doug Lowder [EMAIL PROTECTED] wrote:


  Ah, sorry, I missed the fact that it was for a single cell instead of
the entire row.

So do you already have a cell renderer based on something like HBox,
and if so have you tried setting the backgroundColor property? What
happened? I would think that should work. I'll see if I can put
together a working example.

--- In [EMAIL PROTECTED] flexcoders%40yahoogroups.com, Jatin
Nanda [EMAIL PROTECTED] wrote:

 HI Doug,

 Thanks for the tip - but unfortunately it affects the whole row, not
just
 one cell ...

 Tried changing the bgcolor, which doesn't seem to work either. Any other
 thoughts?

 Thanks in advance,

 J

 On 11 Apr 2007 12:58:15 -0700, Doug Lowder [EMAIL PROTECTED] wrote:
 
  In 1.5, you can do this directly from the datagrid with the
  setPropertiesAt() method - no cell renderer required.
 
  myGrid.setPropertiesAt(rowIndex, {backgroundColor: 0xFF});
 
  If you must use a cellrenderer, just set the background of your
  container (canvas, hbox, or what have you) in the setValue() method,
  based on the row data.
 
  --- In [EMAIL PROTECTED] 
flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com,
Jatin
  Nanda jatin.nanda@
 
  wrote:
  
   Dear All,
  
   I need to know how you use a custom cell renderer to change the
   background colour of a cell in a grid.
  
   Plenty of exampled for Flex 2.0, but I need to do it in Flex 1.5
  
   Know anyone who might have an answer?
  
   Thanks in advance,
  
  
   J
  
 
 
 


 



RE: [flexcoders] Re: Flex 1.5 Question

2007-04-12 Thread Alex Harui
OK.  FWIW, you could go back to UIComponent and use beginFill,
moveTo/lineTo/endFill to draw the background yourself.  It will be
slightly faster and smaller than using VBox.



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Jatin Nanda
Sent: Thursday, April 12, 2007 3:34 AM
To: [EMAIL PROTECTED]
Subject: Re: [flexcoders] Re: Flex 1.5 Question



Hi Doug, Alex,

Thx for your emails. Got it to work, I just changed my cell renderer
from extending UIComponent to extending VBox. Thanks for the hint :-)

Cheers,

J


On 11 Apr 2007 17:59:53 -0700, Doug Lowder  [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote: 

Ah, sorry, I missed the fact that it was for a single cell
instead of
the entire row.

So do you already have a cell renderer based on something like
HBox,
and if so have you tried setting the backgroundColor property?
What
happened? I would think that should work. I'll see if I can put
together a working example.

--- In [EMAIL PROTECTED]
mailto:flexcoders%40yahoogroups.com , Jatin Nanda [EMAIL PROTECTED]
wrote:

 HI Doug,
 
 Thanks for the tip - but unfortunately it affects the whole
row, not
just
 one cell ...
 
 Tried changing the bgcolor, which doesn't seem to work either.
Any other
 thoughts?
 
 Thanks in advance,
 
 J
 
 On 11 Apr 2007 12:58:15 -0700, Doug Lowder [EMAIL PROTECTED]
wrote:
 
  In 1.5, you can do this directly from the datagrid with the
  setPropertiesAt() method - no cell renderer required.
 
  myGrid.setPropertiesAt(rowIndex, {backgroundColor:
0xFF});
 
  If you must use a cellrenderer, just set the background of
your
  container (canvas, hbox, or what have you) in the setValue()
method,
  based on the row data.
 
  --- In [EMAIL PROTECTED]
mailto:flexcoders%40yahoogroups.com  flexcoders%40yahoogroups.com,
Jatin
  Nanda jatin.nanda@
 
  wrote:
  
   Dear All,
  
   I need to know how you use a custom cell renderer to
change the
   background colour of a cell in a grid.
  
   Plenty of exampled for Flex 2.0, but I need to do it in
Flex 1.5
  
   Know anyone who might have an answer?
  
   Thanks in advance,
  
  
   J
  
 
  
 







 


[flexcoders] Re: Flex 1.5 Question

2007-04-11 Thread Doug Lowder
In 1.5, you can do this directly from the datagrid with the 
setPropertiesAt() method - no cell renderer required.

myGrid.setPropertiesAt(rowIndex, {backgroundColor: 0xFF});

If you must use a cellrenderer, just set the background of your 
container (canvas, hbox, or what have you) in the setValue() method, 
based on the row data.

--- In flexcoders@yahoogroups.com, Jatin Nanda [EMAIL PROTECTED] 
wrote:

 Dear All,
 
 I need to know how you use a custom cell renderer to change the
 background colour of a cell in a grid.
 
 Plenty of exampled for Flex 2.0, but I need to do it in Flex 1.5
 
 Know anyone who might have an answer?
 
 Thanks in advance,
 
 
 J





Re: [flexcoders] Re: Flex 1.5 Question

2007-04-11 Thread Jatin Nanda

HI Doug,

Thanks for the tip - but unfortunately it affects the whole row, not just
one cell ...

Tried changing the bgcolor, which doesn't seem to work either. Any other
thoughts?

Thanks in advance,

J

On 11 Apr 2007 12:58:15 -0700, Doug Lowder [EMAIL PROTECTED] wrote:


  In 1.5, you can do this directly from the datagrid with the
setPropertiesAt() method - no cell renderer required.

myGrid.setPropertiesAt(rowIndex, {backgroundColor: 0xFF});

If you must use a cellrenderer, just set the background of your
container (canvas, hbox, or what have you) in the setValue() method,
based on the row data.

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Jatin
Nanda [EMAIL PROTECTED]

wrote:

 Dear All,

 I need to know how you use a custom cell renderer to change the
 background colour of a cell in a grid.

 Plenty of exampled for Flex 2.0, but I need to do it in Flex 1.5

 Know anyone who might have an answer?

 Thanks in advance,


 J


 



RE: [flexcoders] Re: Flex 1.5 Question

2007-04-11 Thread Alex Harui
Define a custom cell renderer for that column.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jatin Nanda
Sent: Wednesday, April 11, 2007 4:41 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Flex 1.5 Question



HI Doug,

Thanks for the tip - but unfortunately it affects the whole row, not
just one cell ...

Tried changing the bgcolor, which doesn't seem to work either. Any other
thoughts?

Thanks in advance, 

J


On 11 Apr 2007 12:58:15 -0700, Doug Lowder [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote: 

In 1.5, you can do this directly from the datagrid with the 
setPropertiesAt() method - no cell renderer required.

myGrid.setPropertiesAt(rowIndex, {backgroundColor: 0xFF});

If you must use a cellrenderer, just set the background of your 
container (canvas, hbox, or what have you) in the setValue()
method, 
based on the row data.

--- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Jatin Nanda [EMAIL PROTECTED] 


wrote:

 Dear All,
 
 I need to know how you use a custom cell renderer to change
the
 background colour of a cell in a grid.
 
 Plenty of exampled for Flex 2.0, but I need to do it in Flex
1.5
 
 Know anyone who might have an answer?
 
 Thanks in advance,
 
 
 J









 


[flexcoders] Re: Flex 1.5 Question

2007-04-11 Thread Doug Lowder
Ah, sorry, I missed the fact that it was for a single cell instead of
the entire row.

So do you already have a cell renderer based on something like HBox,
and if so have you tried setting the backgroundColor property?  What
happened?  I would think that should work.  I'll see if I can put
together a working example.

--- In flexcoders@yahoogroups.com, Jatin Nanda [EMAIL PROTECTED] wrote:

 HI Doug,
 
 Thanks for the tip - but unfortunately it affects the whole row, not
just
 one cell ...
 
 Tried changing the bgcolor, which doesn't seem to work either. Any other
 thoughts?
 
 Thanks in advance,
 
 J
 
 On 11 Apr 2007 12:58:15 -0700, Doug Lowder [EMAIL PROTECTED] wrote:
 
In 1.5, you can do this directly from the datagrid with the
  setPropertiesAt() method - no cell renderer required.
 
  myGrid.setPropertiesAt(rowIndex, {backgroundColor: 0xFF});
 
  If you must use a cellrenderer, just set the background of your
  container (canvas, hbox, or what have you) in the setValue() method,
  based on the row data.
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
Jatin
  Nanda jatin.nanda@
 
  wrote:
  
   Dear All,
  
   I need to know how you use a custom cell renderer to change the
   background colour of a cell in a grid.
  
   Plenty of exampled for Flex 2.0, but I need to do it in Flex 1.5
  
   Know anyone who might have an answer?
  
   Thanks in advance,
  
  
   J