[flexcoders] Re: problem with cell renderer in ComboBox

2006-02-28 Thread george_lui
Just sharing the solution I got for this with Flex Support.  I
basically just used the labelFunction attribute.


  function formatName( item ) : String {
return item.firstName + " " + item.lastName;
  }





I still wondering why the cellRenderer solution didn't work.  

cheers,
George




--- In flexcoders@yahoogroups.com, "george_lui" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> I had a cellrenderer that was originally used in  datagrid cell.  I've
> since replaced the datagrid with a comboBox. I'm trying to reuse the
> same cellrenderer in the combo using the code below.
> 
>   creationComplete=
> 
"event.target.getDropdown().cellRenderer='com.sf.sfv4.view.sharkfin.FullNameRenderer';
> event.target.getDropdown().variableRowHeight=true" rowCount="10">
>{ ModelLocator.employees } 
> 
> 
> The FullNameRenderer cellrenderer I have just takes the first and last
> name of a user vo and concatenates it.
> 
> However this isn't working for the combobox.  I get and set the
> cellrenderer of the combobox's dropdown property as stated in this
> group by another member, but it doesn't work.  Instead I get the user
> vo object displayed.
> 
> I'm confused, I'm using the same dataProvider and cellrenderer in the
> combobox as I did in the datagrid.  I think there's a difference
> between the two widgets, but I just don't know what it is.
> 
> Please advise...
> 
> TIA,
> George
>







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: problem with cell renderer in ComboBox

2006-02-22 Thread george_lui
Thanx, however the link doesn't work (500 err).  Would you have an
example of your own you can share?

thx,
George


--- In flexcoders@yahoogroups.com, "bhaq1972" <[EMAIL PROTECTED]> wrote:
>
> quite surprising this didn't work for you. i took this idea from 
> Peter Ent's weblogs. check out the cellrenders section
> 
> http://weblogs.macromedia.com/pent/archives/2004/12/index.cfm
> 
> the code can be downloaded and there is a sample test app to see it 
> in action. its very good.
> 
> 
> --- In flexcoders@yahoogroups.com, "george_lui"  
> wrote:
> >
> > I don't see how this was terribly different from the original 
> code. 
> > But I tried it anyways and it doesn't work. 
> > 
> > thanx anyways,
> > geo
> > 
> > --- In flexcoders@yahoogroups.com, "bhaq1972"  wrote:
> > >
> > > why dont you simplify things a bit. put your FullNameRenderer 
> into 
> > > the same folder location as your ComboBox mxml application.
> > > 
> > > and do this
> > > 
> > > 
> > > function test(event){
> > > event.target.dropdown.cellRenderer = FullNameRenderer;
> > > }
> > > 
> > > 
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com, "george_lui"  
> > > wrote:
> > > >
> > > > Y'know I just did a blind copy&paste from some other guy in 
> this
> > > > group. But yeah, I don't see no getDropdown() method in the 
> api 
> > > docs.
> > > >   Just the dropdown property. I did try your setting it to the
> > > > property and it still didn't work :(
> > > > 
> > > > thanx,
> > > > george
> > > > 
> > > > 
> > > > --- In flexcoders@yahoogroups.com, "Doug Lowder"  
> > > wrote:
> > > > >
> > > > > Hi,
> > > > > 
> > > > > I'm not familiar with getDropdown().  Is getDropdown() a 
> valid 
> > > method
> > > > > of your combobox?
> > > > > 
> > > > > If not, try "event.target.dropdown." instead of
> > > > > "event.target.getDropdown().".
> > > > > 
> > > > > Doug
> > > > > 
> > > > > 
> > > > > --- In flexcoders@yahoogroups.com, "george_lui" 
>  
> > > wrote:
> > > > > >
> > > > > > Hi,
> > > > > > 
> > > > > > I had a cellrenderer that was originally used in  datagrid 
> > > cell.  I've
> > > > > > since replaced the datagrid with a comboBox. I'm trying to 
> > > reuse the
> > > > > > same cellrenderer in the combo using the code below.
> > > > > > 
> > > > > >  id="employeeComboBox"
> > > > > >  creationComplete=
> > > > > > 
> > > > >
> > > > "event.target.getDropdown
> > > ().cellRenderer='com.sf.sfv4.view.sharkfin.FullNameRenderer';
> > > > > > event.target.getDropdown().variableRowHeight=true" 
> > > rowCount="10">
> > > > > >{ ModelLocator.employees } 
> > > 
> > > > > > 
> > > > > > 
> > > > > > The FullNameRenderer cellrenderer I have just takes the 
> first 
> > > and last
> > > > > > name of a user vo and concatenates it.
> > > > > > 
> > > > > > However this isn't working for the combobox.  I get and 
> set the
> > > > > > cellrenderer of the combobox's dropdown property as stated 
> in 
> > > this
> > > > > > group by another member, but it doesn't work.  Instead I 
> get 
> > > the user
> > > > > > vo object displayed.
> > > > > > 
> > > > > > I'm confused, I'm using the same dataProvider and 
> cellrenderer 
> > > in the
> > > > > > combobox as I did in the datagrid.  I think there's a 
> > > difference
> > > > > > between the two widgets, but I just don't know what it is.
> > > > > > 
> > > > > > Please advise...
> > > > > > 
> > > > > > TIA,
> > > > > > George
> > > > > >
> > > > >
> > > >
> > >
> >
>





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: problem with cell renderer in ComboBox

2006-02-22 Thread bhaq1972
thanks Anatole. i'll try it out.
there's so much to learn in flex 2 its like a new language.


--- In flexcoders@yahoogroups.com, "Anatole Tartakovsky" 
<[EMAIL PROTECTED]> wrote:
>
> Bod,
> We are actually supporting our DGComboBox as a standard object 
in our framework. As far as Flex 2, it is also supported - just 
implementation is different - listItemRenderer is dynamically 
created instead of grid. So there is no code change in the 
application - just internal implementation is different.
> However, if you are "starting fresh" with Flex 2  and do not want 
3rd party components this will do:
>dataProvider="{..}"
>width="200" >
>  
>
> http://www.macromedia.com/2005/mxml"; xmlns="*" 
verticalGap="0"
>hScrollPolicy="off" vScrollPolicy="off" >
>   
>
> 
>
> 
>  
>
>  
>    
> 
> 
> ----- Original Message - 
>   From: bhaq1972 
>   To: flexcoders@yahoogroups.com 
>   Sent: Wednesday, February 22, 2006 10:21 AM
>   Subject: [flexcoders] Re: problem with cell renderer in ComboBox
> 
> 
>   --- In flexcoders@yahoogroups.com, "Anatole Tartakovsky" 
>wrote:
>   >
>   > As far as I recall, dropdown object can be "dropped" and 
recreated 
>   when the data model and other things change. If you do not 
reassign 
>   cellrenderer at that time it will be gone. It would make sense 
to me 
>   to subclass the object and override getDropdown function to 
assign 
>   cellrenderer on each call or at least when dropdown was not 
defined 
>   at the time of the call.
>   > Thank you,
>   > Anatole
> 
>   i agree with you Anatole. infact this is what i'm doing for my 
>   subclassed combobox(flex1.5). i override the getDropdown() 
method. 
>   and instead of the dropdown being a List, it's a DataGrid (2 
>   columns, no header). my use case for this kind of dropdown is i 
can 
>   show more information to the user.
> 
>   the only thing i don't like about this approach is its not 
supported.
> 
>   regards
>   bod
> 
> 
> 
> 
> 
> 
>   --
>   Flexcoders Mailing List
>   FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>   Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.com 
> 
> 
> 
>   SPONSORED LINKS Web site design development  Computer software 
development  Software design and development  
> Macromedia flex  Software development best practice  
> 
> 
> ---
---
>   YAHOO! GROUPS LINKS 
> 
> a..  Visit your group "flexcoders" on the web.
>   
> b..  To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>   
> c..  Your use of Yahoo! Groups is subject to the Yahoo! Terms 
of Service. 
> 
> 
> ---
---
>







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Re: problem with cell renderer in ComboBox

2006-02-22 Thread Anatole Tartakovsky





Bod,
    We are actually supporting our 
DGComboBox as a standard object in our framework. As far as Flex 2, it is also 
supported - just implementation is different - listItemRenderer is dynamically 
created instead of grid. So there is no code change in the application - 
just internal implementation is different.
However, if you are "starting fresh" with Flex 
2  and do not want 3rd party components this will do:
   
   
dataProvider="{..}"   
width="200" 
> 
   
http://www.macromedia.com/2005/mxml" 
xmlns="*" verticalGap="0"   hScrollPolicy="off" 
vScrollPolicy="off" > 
   
    
 
    
 
   

 
 
- Original Message - 

  From: 
  bhaq1972 
  
  To: flexcoders@yahoogroups.com 
  Sent: Wednesday, February 22, 2006 10:21 
  AM
  Subject: [flexcoders] Re: problem with 
  cell renderer in ComboBox
  --- In flexcoders@yahoogroups.com, 
  "Anatole Tartakovsky" <[EMAIL PROTECTED]> wrote:>> As far 
  as I recall, dropdown object can be "dropped" and recreated when the data 
  model and other things change. If you do not reassign cellrenderer at that 
  time it will be gone. It would make sense to me to subclass the object and 
  override getDropdown function to assign cellrenderer on each call or at 
  least when dropdown was not defined at the time of the call.> Thank 
  you,> Anatolei agree with you Anatole. infact this is what i'm 
  doing for my subclassed combobox(flex1.5). i override the getDropdown() 
  method. and instead of the dropdown being a List, it's a DataGrid (2 
  columns, no header). my use case for this kind of dropdown is i can 
  show more information to the user.the only thing i don't like 
  about this approach is its not 
  supported.regardsbod





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Re: problem with cell renderer in ComboBox

2006-02-22 Thread bhaq1972
--- In flexcoders@yahoogroups.com, "Anatole Tartakovsky" 
<[EMAIL PROTECTED]> wrote:
>
> As far as I recall, dropdown object can be "dropped" and recreated 
when the data model and other things change. If you do not reassign 
cellrenderer at that time it will be gone. It would make sense to me 
to subclass the object and override getDropdown function to assign 
cellrenderer on each call or at least when dropdown was not defined 
at the time of the call.
> Thank you,
> Anatole

i agree with you Anatole. infact this is what i'm doing for my 
subclassed combobox(flex1.5). i override the getDropdown() method. 
and instead of the dropdown being a List, it's a DataGrid (2 
columns, no header). my use case for this kind of dropdown is i can 
show more information to the user.

the only thing i don't like about this approach is its not supported.

regards
bod






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Re: problem with cell renderer in ComboBox

2006-02-22 Thread Anatole Tartakovsky





As far as I recall, dropdown object can be 
"dropped" and recreated when the data model and other things change. If you do 
not reassign cellrenderer at that time it will be gone. It would make sense to 
me to subclass the object and override getDropdown function to assign 
cellrenderer on each call or at least when dropdown was not defined at the time 
of the call.
Thank you,
Anatole

  - Original Message - 
  From: 
  bhaq1972 
  
  To: flexcoders@yahoogroups.com 
  Sent: Wednesday, February 22, 2006 4:00 
  AM
  Subject: [flexcoders] Re: problem with 
  cell renderer in ComboBox
  quite surprising this didn't work for you. i took this idea 
  from Peter Ent's weblogs. check out the cellrenders sectionhttp://weblogs.macromedia.com/pent/archives/2004/12/index.cfmthe 
  code can be downloaded and there is a sample test app to see it in action. 
  its very good.--- In flexcoders@yahoogroups.com, 
  "george_lui" <[EMAIL PROTECTED]> wrote:>> I don't see how 
  this was terribly different from the original code. > But I tried 
  it anyways and it doesn't work. > > thanx anyways,> 
  geo> > --- In flexcoders@yahoogroups.com, "bhaq1972" 
   wrote:> >> > why dont you simplify things 
  a bit. put your FullNameRenderer into > > the same folder 
  location as your ComboBox mxml application.> > > > and do 
  this> > > 
  > > > function test(event){> > 
  event.target.dropdown.cellRenderer = FullNameRenderer;> > }> 
  > > > > > > > > > --- In 
  flexcoders@yahoogroups.com, "george_lui"  > > 
  wrote:> > >> > > Y'know I just did a blind 
  copy&paste from some other guy in this> > > group. But 
  yeah, I don't see no getDropdown() method in the api > > 
  docs.> > >   Just the dropdown property. I did try your 
  setting it to the> > > property and it still didn't work 
  :(> > > > > > thanx,> > > 
  george> > > > > > > > > --- In 
  flexcoders@yahoogroups.com, "Doug Lowder"  > > 
  wrote:> > > >> > > > Hi,> > > 
  > > > > > I'm not familiar with getDropdown().  Is 
  getDropdown() a valid > > method> > > > of your 
  combobox?> > > > > > > > If not, try 
  "event.target.dropdown." instead of> > > > 
  "event.target.getDropdown().".> > > > > > > 
  > Doug> > > > > > > > > > > 
  > --- In flexcoders@yahoogroups.com, "george_lui"  
  > > wrote:> > > > >> > > > > 
  Hi,> > > > > > > > > > I had a 
  cellrenderer that was originally used in  datagrid > > 
  cell.  I've> > > > > since replaced the datagrid with 
  a comboBox. I'm trying to > > reuse the> > > > > 
  same cellrenderer in the combo using the code below.> > > > 
  > > > > > > id="employeeComboBox"    
  > > > > 
  >  
  creationComplete=> > > > > > > > >> 
  > > "event.target.getDropdown> > 
  ().cellRenderer='com.sf.sfv4.view.sharkfin.FullNameRenderer';> > 
  > > > event.target.getDropdown().variableRowHeight=true" > 
  > rowCount="10">> > > > >   
   { ModelLocator.employees } > > 
  > > > > > 
  > > > > > > > > > > 
  The FullNameRenderer cellrenderer I have just takes the first > 
  > and last> > > > > name of a user vo and concatenates 
  it.> > > > > > > > > > However this 
  isn't working for the combobox.  I get and set the> > > 
  > > cellrenderer of the combobox's dropdown property as stated in 
  > > this> > > > > group by another member, but it 
  doesn't work.  Instead I get > > the user> > > 
  > > vo object displayed.> > > > > > > > 
  > > I'm confused, I'm using the same dataProvider and cellrenderer 
  > > in the> > > > > combobox as I did in the 
  datagrid.  I think there's a > > difference> > > 
  > > between the two widgets, but I just don't know what it is.> 
  > > > > > > > > > Please advise...> > 
  > > > > > > > > TIA,> > > > > 
  George> > > > >> > > >> > 
  >> >>





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Re: problem with cell renderer in ComboBox

2006-02-22 Thread bhaq1972
quite surprising this didn't work for you. i took this idea from 
Peter Ent's weblogs. check out the cellrenders section

http://weblogs.macromedia.com/pent/archives/2004/12/index.cfm

the code can be downloaded and there is a sample test app to see it 
in action. its very good.


--- In flexcoders@yahoogroups.com, "george_lui" <[EMAIL PROTECTED]> 
wrote:
>
> I don't see how this was terribly different from the original 
code. 
> But I tried it anyways and it doesn't work. 
> 
> thanx anyways,
> geo
> 
> --- In flexcoders@yahoogroups.com, "bhaq1972"  wrote:
> >
> > why dont you simplify things a bit. put your FullNameRenderer 
into 
> > the same folder location as your ComboBox mxml application.
> > 
> > and do this
> > 
> > 
> > function test(event){
> > event.target.dropdown.cellRenderer = FullNameRenderer;
> > }
> > 
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "george_lui"  
> > wrote:
> > >
> > > Y'know I just did a blind copy&paste from some other guy in 
this
> > > group. But yeah, I don't see no getDropdown() method in the 
api 
> > docs.
> > >   Just the dropdown property. I did try your setting it to the
> > > property and it still didn't work :(
> > > 
> > > thanx,
> > > george
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com, "Doug Lowder"  
> > wrote:
> > > >
> > > > Hi,
> > > > 
> > > > I'm not familiar with getDropdown().  Is getDropdown() a 
valid 
> > method
> > > > of your combobox?
> > > > 
> > > > If not, try "event.target.dropdown." instead of
> > > > "event.target.getDropdown().".
> > > > 
> > > > Doug
> > > > 
> > > > 
> > > > --- In flexcoders@yahoogroups.com, "george_lui" 
 
> > wrote:
> > > > >
> > > > > Hi,
> > > > > 
> > > > > I had a cellrenderer that was originally used in  datagrid 
> > cell.  I've
> > > > > since replaced the datagrid with a comboBox. I'm trying to 
> > reuse the
> > > > > same cellrenderer in the combo using the code below.
> > > > > 
> > > > >  > > > >  creationComplete=
> > > > > 
> > > >
> > > "event.target.getDropdown
> > ().cellRenderer='com.sf.sfv4.view.sharkfin.FullNameRenderer';
> > > > > event.target.getDropdown().variableRowHeight=true" 
> > rowCount="10">
> > > > >{ ModelLocator.employees } 
> > 
> > > > > 
> > > > > 
> > > > > The FullNameRenderer cellrenderer I have just takes the 
first 
> > and last
> > > > > name of a user vo and concatenates it.
> > > > > 
> > > > > However this isn't working for the combobox.  I get and 
set the
> > > > > cellrenderer of the combobox's dropdown property as stated 
in 
> > this
> > > > > group by another member, but it doesn't work.  Instead I 
get 
> > the user
> > > > > vo object displayed.
> > > > > 
> > > > > I'm confused, I'm using the same dataProvider and 
cellrenderer 
> > in the
> > > > > combobox as I did in the datagrid.  I think there's a 
> > difference
> > > > > between the two widgets, but I just don't know what it is.
> > > > > 
> > > > > Please advise...
> > > > > 
> > > > > TIA,
> > > > > George
> > > > >
> > > >
> > >
> >
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Re: problem with cell renderer in ComboBox

2006-02-21 Thread Matt Chotin
function foo(item:Object):Void
{
  return item.attribute;
}

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of george_lui
Sent: Tuesday, February 21, 2006 5:14 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: problem with cell renderer in ComboBox

Hi Matt,

You have an example of a labelFunction?  Say I have the blurb below...


funtion foo() {
  ??
}




   
{ ModelLocator.employees } 
  


Here, "ModelLocator.employees" is an array of custom vo objects.  How
do I access the individual attributes of each vo object in this
scenario?

TIA,
George

--- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote:
>
> labelField isn't necessary if you have a cell renderer.  Any chance
you
> can just use labelFunction if all you're doing is concatenation?  I'm
> almost positive variableRowHeight also isn't going to work.
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of george_lui
> Sent: Friday, February 17, 2006 11:10 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: problem with cell renderer in ComboBox
> 
> good call, but it didn't work.  Really weird. Do you think I still
> need the labelField attribute?
> 
> TIA,
> George
> 
> 
> --- In flexcoders@yahoogroups.com, "Matt Chotin"  wrote:
> >
> > What if you take out the quotes around the renderer?
> > 
> > -Original Message-
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
> On
> > Behalf Of george_lui
> > Sent: Thursday, February 16, 2006 3:50 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] problem with cell renderer in ComboBox
> > 
> > Hi,
> > 
> > I had a cellrenderer that was originally used in  datagrid cell.
I've
> > since replaced the datagrid with a comboBox. I'm trying to reuse the
> > same cellrenderer in the combo using the code below.
> > 
> >  >  creationComplete=
> >  
> >
>
"event.target.getDropdown().cellRenderer='com.sf.sfv4.view.sharkfin.Full
> > NameRenderer';
> > event.target.getDropdown().variableRowHeight=true" rowCount="10">
> >{ ModelLocator.employees } 
> > 
> > 
> > The FullNameRenderer cellrenderer I have just takes the first and
last
> > name of a user vo and concatenates it.
> > 
> > However this isn't working for the combobox.  I get and set the
> > cellrenderer of the combobox's dropdown property as stated in this
> > group by another member, but it doesn't work.  Instead I get the
user
> > vo object displayed.
> > 
> > I'm confused, I'm using the same dataProvider and cellrenderer in
the
> > combobox as I did in the datagrid.  I think there's a difference
> > between the two widgets, but I just don't know what it is.
> > 
> > Please advise...
> > 
> > TIA,
> > George
> > 
> > 
> > 
> > 
> > 
> > --
> > Flexcoders Mailing List
> > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> > Yahoo! Groups Links
> >
> 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Re: problem with cell renderer in ComboBox

2006-02-21 Thread Matt Chotin
The dropdown is not treated like a factory class (like cell renderers).
You can override the dropdown getter to do what you want, and if you're
so inclined make it writable in your subclass.

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bhaq1972
Sent: Monday, February 20, 2006 1:52 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: problem with cell renderer in ComboBox

i would also like to see the dropdown property made into 
a 'Read/Write'.

i had to override the getDropdown() method which gave me problems 
when going from flex1 to 1.5 (i know this method is not in the api)

other technologies such as PowerBuilder is not an issue.



--- In flexcoders@yahoogroups.com, "Anatole Tartakovsky" 
<[EMAIL PROTECTED]> wrote:
>
> Matt,
> Is it possible to downgrade ComboBox::dropdown property in the 
next beta/final release to ListBase so the subclassing/ability to 
show more complex dropdowns is possible? Also, what are the chances 
of relaxing base types of the internal properties of the controls a 
bit (when it does not affect performance) from strongly typed to 
lower levels/split them to interfaces. 
> Without code decoration/polymorphism in the base objects the 
current architecture is much more code and time consuming for 
control development and can be showstopper for 3rd party controls.
> 
> Sincerely,
> Anatole
> 
> - Original Message - 
>   From: Matt Chotin 
>   To: flexcoders@yahoogroups.com 
>   Sent: Sunday, February 19, 2006 1:16 AM
>   Subject: RE: [flexcoders] Re: problem with cell renderer in 
ComboBox
> 
> 
>   labelField isn't necessary if you have a cell renderer.  Any 
chance you
>   can just use labelFunction if all you're doing is 
concatenation?  I'm
>   almost positive variableRowHeight also isn't going to work.
> 
>   -Original Message-
>   From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
>   Behalf Of george_lui
>   Sent: Friday, February 17, 2006 11:10 AM
>   To: flexcoders@yahoogroups.com
>   Subject: [flexcoders] Re: problem with cell renderer in ComboBox
> 
>   good call, but it didn't work.  Really weird. Do you think I 
still
>   need the labelField attribute?
> 
>   TIA,
>   George
> 
> 
>   --- In flexcoders@yahoogroups.com, "Matt Chotin"  
wrote:
>   >
>   > What if you take out the quotes around the renderer?
>   > 
>   > -Original Message-
>   > From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED]
>   On
>   > Behalf Of george_lui
>   > Sent: Thursday, February 16, 2006 3:50 PM
>   > To: flexcoders@yahoogroups.com
>   > Subject: [flexcoders] problem with cell renderer in ComboBox
>   > 
>   > Hi,
>   > 
>   > I had a cellrenderer that was originally used in  datagrid 
cell.  I've
>   > since replaced the datagrid with a comboBox. I'm trying to 
reuse the
>   > same cellrenderer in the combo using the code below.
>   > 
>   >>  creationComplete=
>   >  
>   >
>   "event.target.getDropdown
().cellRenderer='com.sf.sfv4.view.sharkfin.Full
>   > NameRenderer';
>   > event.target.getDropdown().variableRowHeight=true" 
rowCount="10">
>   >{ ModelLocator.employees } 

>   > 
>   > 
>   > The FullNameRenderer cellrenderer I have just takes the first 
and last
>   > name of a user vo and concatenates it.
>   > 
>   > However this isn't working for the combobox.  I get and set the
>   > cellrenderer of the combobox's dropdown property as stated in 
this
>   > group by another member, but it doesn't work.  Instead I get 
the user
>   > vo object displayed.
>   > 
>   > I'm confused, I'm using the same dataProvider and cellrenderer 
in the
>   > combobox as I did in the datagrid.  I think there's a 
difference
>   > between the two widgets, but I just don't know what it is.
>   > 
>   > Please advise...
>   > 
>   > TIA,
>   > George
>   > 
>   > 
>   > 
>   > 
>   > 
>   > --
>   > Flexcoders Mailing List
>   > FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>   > Search Archives:
>   > http://www.mail-archive.com/flexcoders%40yahoogroups.com 
>   > Yahoo! Groups Links
>   >
> 
> 
> 
> 
> 
> 
>   --
>   Flexcoders Mailing List
>   FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>   Search Archives:
>   http://www.mail-archive.com/flexcoders%40yahoogroups.com 
>   Yahoo! Groups Links
> 
> 
> 
> 

RE: [flexcoders] Re: problem with cell renderer in ComboBox

2006-02-21 Thread Matt Chotin
The dropdown is not treated like a factory class (like cell renderers).
You can override the dropdown getter to do what you want, and if you're
so inclined make it writable in your subclass.

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bhaq1972
Sent: Monday, February 20, 2006 1:52 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: problem with cell renderer in ComboBox

i would also like to see the dropdown property made into 
a 'Read/Write'.

i had to override the getDropdown() method which gave me problems 
when going from flex1 to 1.5 (i know this method is not in the api)

other technologies such as PowerBuilder is not an issue.



--- In flexcoders@yahoogroups.com, "Anatole Tartakovsky" 
<[EMAIL PROTECTED]> wrote:
>
> Matt,
> Is it possible to downgrade ComboBox::dropdown property in the 
next beta/final release to ListBase so the subclassing/ability to 
show more complex dropdowns is possible? Also, what are the chances 
of relaxing base types of the internal properties of the controls a 
bit (when it does not affect performance) from strongly typed to 
lower levels/split them to interfaces. 
> Without code decoration/polymorphism in the base objects the 
current architecture is much more code and time consuming for 
control development and can be showstopper for 3rd party controls.
> 
> Sincerely,
> Anatole
> 
> - Original Message - 
>   From: Matt Chotin 
>   To: flexcoders@yahoogroups.com 
>   Sent: Sunday, February 19, 2006 1:16 AM
>   Subject: RE: [flexcoders] Re: problem with cell renderer in 
ComboBox
> 
> 
>   labelField isn't necessary if you have a cell renderer.  Any 
chance you
>   can just use labelFunction if all you're doing is 
concatenation?  I'm
>   almost positive variableRowHeight also isn't going to work.
> 
>   -Original Message-
>   From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
>   Behalf Of george_lui
>   Sent: Friday, February 17, 2006 11:10 AM
>   To: flexcoders@yahoogroups.com
>   Subject: [flexcoders] Re: problem with cell renderer in ComboBox
> 
>   good call, but it didn't work.  Really weird. Do you think I 
still
>   need the labelField attribute?
> 
>   TIA,
>   George
> 
> 
>   --- In flexcoders@yahoogroups.com, "Matt Chotin"  
wrote:
>   >
>   > What if you take out the quotes around the renderer?
>   > 
>   > -Original Message-
>   > From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED]
>   On
>   > Behalf Of george_lui
>   > Sent: Thursday, February 16, 2006 3:50 PM
>   > To: flexcoders@yahoogroups.com
>   > Subject: [flexcoders] problem with cell renderer in ComboBox
>   > 
>   > Hi,
>   > 
>   > I had a cellrenderer that was originally used in  datagrid 
cell.  I've
>   > since replaced the datagrid with a comboBox. I'm trying to 
reuse the
>   > same cellrenderer in the combo using the code below.
>   > 
>   >>  creationComplete=
>   >  
>   >
>   "event.target.getDropdown
().cellRenderer='com.sf.sfv4.view.sharkfin.Full
>   > NameRenderer';
>   > event.target.getDropdown().variableRowHeight=true" 
rowCount="10">
>   >{ ModelLocator.employees } 

>   > 
>   > 
>   > The FullNameRenderer cellrenderer I have just takes the first 
and last
>   > name of a user vo and concatenates it.
>   > 
>   > However this isn't working for the combobox.  I get and set the
>   > cellrenderer of the combobox's dropdown property as stated in 
this
>   > group by another member, but it doesn't work.  Instead I get 
the user
>   > vo object displayed.
>   > 
>   > I'm confused, I'm using the same dataProvider and cellrenderer 
in the
>   > combobox as I did in the datagrid.  I think there's a 
difference
>   > between the two widgets, but I just don't know what it is.
>   > 
>   > Please advise...
>   > 
>   > TIA,
>   > George
>   > 
>   > 
>   > 
>   > 
>   > 
>   > --
>   > Flexcoders Mailing List
>   > FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>   > Search Archives:
>   > http://www.mail-archive.com/flexcoders%40yahoogroups.com 
>   > Yahoo! Groups Links
>   >
> 
> 
> 
> 
> 
> 
>   --
>   Flexcoders Mailing List
>   FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>   Search Archives:
>   http://www.mail-archive.com/flexcoders%40yahoogroups.com 
>   Yahoo! Groups Links
> 
> 
> 
> 

RE: [flexcoders] Re: problem with cell renderer in ComboBox

2006-02-21 Thread Matt Chotin










We haven’t released it yet, it will
be available with the shipping product if not before.

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Anatole Tartakovsky
Sent: Tuesday, February 21, 2006
9:01 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re:
problem with cell renderer in ComboBox



 



Matt,





    Is there any date/special area we can use
to download the source? That would definetly simplify the
"overriding".





Thank you,





Anatole







- Original Message - 





From: Matt Chotin 





To: flexcoders@yahoogroups.com






Sent: Tuesday, February
21, 2006 11:57 PM





Subject: RE: [flexcoders]
Re: problem with cell renderer in ComboBox





 



I’ll file a request for the dropdown
but I don’t know the reasons behind its structure.  You can at least
use ComboBase as a starting point if List won’t cut it for you.  As
for introducing more interfaces, we had them at one point and I think we found
that it was getting out of hand without much value.  The source is going
to be available so you should be able to copy and modify for the ones that
don’t work out exactly as you need.

 

Matt

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Anatole Tartakovsky
Sent: Sunday, February 19, 2006
7:26 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re:
problem with cell renderer in ComboBox



 



Matt,





    Is it possible to downgrade
ComboBox::dropdown property in the next beta/final release to ListBase so the
subclassing/ability to show more complex dropdowns is possible? Also, what are
the chances of relaxing base types of the internal properties of the controls a
bit (when it does not affect performance) from strongly typed to lower
levels/split them to interfaces. 





    Without code decoration/polymorphism in
the base objects the current architecture is much more code and time
consuming for control development and can be showstopper for 3rd party
controls.





 





Sincerely,





Anatole





 





- Original Message - 







From: Matt Chotin 





To: flexcoders@yahoogroups.com






Sent: Sunday, February
19, 2006 1:16 AM





Subject: RE: [flexcoders]
Re: problem with cell renderer in ComboBox





 



labelField isn't necessary if
you have a cell renderer.  Any chance you
can just use labelFunction if all you're doing is
concatenation?  I'm
almost positive variableRowHeight also isn't going
to work.

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
Behalf Of george_lui
Sent: Friday, February 17, 2006 11:10 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: problem with cell
renderer in ComboBox

good call, but it didn't work.  Really weird.
Do you think I still
need the labelField attribute?

TIA,
George


--- In flexcoders@yahoogroups.com,
"Matt Chotin"
<[EMAIL PROTECTED]> wrote:
>
> What if you take out the quotes around the
renderer?
> 
> -Original Message-
> From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
> Behalf Of george_lui
> Sent: Thursday, February 16, 2006 3:50 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] problem with cell
renderer in ComboBox
> 
> Hi,
> 
> I had a cellrenderer that was originally used
in  datagrid cell.  I've
> since replaced the datagrid with a comboBox.
I'm trying to reuse the
> same cellrenderer in the combo using the code
below.
> 
> 
> 
creationComplete=
>  
>
"event.target.getDropdown().cellRenderer='com.sf.sfv4.view.sharkfin.Full
> NameRenderer';
> event.target.getDropdown().variableRowHeight=true"
rowCount="10">
>    {
ModelLocator.employees } 
> 
> 
> The FullNameRenderer cellrenderer I have just
takes the first and last
> name of a user vo and concatenates it.
> 
> However this isn't working for the
combobox.  I get and set the
> cellrenderer of the combobox's dropdown
property as stated in this
> group by another member, but it doesn't
work.  Instead I get the user
> vo object displayed.
> 
> I'm confused, I'm using the same dataProvider
and cellrenderer in the
> combobox as I did in the datagrid.  I
think there's a difference
> between the two widgets, but I just don't
know what it is.
> 
> Please advise...
> 
> TIA,
> George
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com

> Yahoo! Groups Links
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-ar

Re: [flexcoders] Re: problem with cell renderer in ComboBox

2006-02-21 Thread Anatole Tartakovsky





Matt,
    Is there any date/special area 
we can use to download the source? That would definetly simplify the 
"overriding".
Thank you,
Anatole

  - Original Message - 
  From: 
  Matt Chotin 
  
  To: flexcoders@yahoogroups.com 
  Sent: Tuesday, February 21, 2006 11:57 
  PM
  Subject: RE: [flexcoders] Re: problem 
  with cell renderer in ComboBox
  
  
  I’ll file a request 
  for the dropdown but I don’t know the reasons behind its structure.  You 
  can at least use ComboBase as a starting point if List won’t cut it for 
  you.  As for introducing more interfaces, we had them at one point and I 
  think we found that it was getting out of hand without much value.  The 
  source is going to be available so you should be able to copy and modify for 
  the ones that don’t work out exactly as you need.
   
  Matt
   
  
  
  
  
  From: 
  flexcoders@yahoogroups.com 
  [mailto:flexcoders@yahoogroups.com] 
  On Behalf Of Anatole 
  TartakovskySent: Sunday, 
  February 19, 2006 7:26 AMTo: 
  flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: problem 
  with cell renderer in ComboBox
   
  
  Matt,
  
      Is it possible 
  to downgrade ComboBox::dropdown property in the next beta/final release to 
  ListBase so the subclassing/ability to show more complex dropdowns is 
  possible? Also, what are the chances of relaxing base types of the internal 
  properties of the controls a bit (when it does not affect performance) from 
  strongly typed to lower levels/split them to interfaces. 
  
  
      Without code 
  decoration/polymorphism in the base objects the current architecture is 
  much more code and time consuming for control development and can be 
  showstopper for 3rd party controls.
  
   
  
  Sincerely,
  
  Anatole
  
   
  
  - Original Message - 
  
  

From: Matt Chotin 


To: flexcoders@yahoogroups.com 


Sent: Sunday, 
February 19, 2006 1:16 AM

Subject: RE: 
[flexcoders] Re: problem with cell renderer in 
    ComboBox

 
labelField isn't necessary if you have 
a cell renderer.  Any chance youcan just use labelFunction if all you're doing is 
concatenation?  I'malmost 
positive variableRowHeight also isn't going to 
work.-Original 
Message-From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] 
OnBehalf Of 
george_luiSent: Friday, 
February 17, 2006 11:10 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Re: problem with cell renderer in 
ComboBoxgood call, but it 
didn't work.  Really weird. Do you think I 
stillneed the labelField 
attribute?TIA,George--- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> 
wrote:>> 
What if you take out the quotes around the 
renderer?> 
> -Original 
Message-> From: 
flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com]On> 
Behalf Of george_lui> Sent: 
Thursday, February 16, 2006 3:50 PM> To: flexcoders@yahoogroups.com> Subject: [flexcoders] problem with cell renderer in 
ComboBox> 
> 
Hi,> 
> I had a cellrenderer that 
was originally used in  datagrid cell.  
I've> since replaced the 
datagrid with a comboBox. I'm trying to reuse the> same cellrenderer in the combo using the code 
below.> 
> >  
creationComplete=>  
>"event.target.getDropdown().cellRenderer='com.sf.sfv4.view.sharkfin.Full> NameRenderer';> event.target.getDropdown().variableRowHeight=true" 
rowCount="10">>    { 
ModelLocator.employees } > > > 
The FullNameRenderer cellrenderer I have just takes the first and 
last> name of a user vo and 
concatenates it.> 
> However this isn't working 
for the combobox.  I get and set the> cellrenderer of the combobox's dropdown property as 
stated in this> group by 
another member, but it doesn't work.  Instead I get the 
user> vo object 
displayed.> 
> I'm confused, I'm using 
the same dataProvider and cellrenderer in the> combobox as I did in the datagrid.  I think 
there's a difference> 
between the two widgets, but I just don't know what it 
is.> 
> Please 
advise...> 
> 
TIA,> 
George> 
> > > 
> > --> 
Flexcoders Mailing List> 
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt> Search Archives:> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups 
Links>--Flexcoders 
Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com 
   

RE: [flexcoders] Re: problem with cell renderer in ComboBox

2006-02-21 Thread Matt Chotin










I’ll file a request for the dropdown
but I don’t know the reasons behind its structure.  You can at least
use ComboBase as a starting point if List won’t cut it for you.  As
for introducing more interfaces, we had them at one point and I think we found
that it was getting out of hand without much value.  The source is going
to be available so you should be able to copy and modify for the ones that don’t
work out exactly as you need.

 

Matt

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Anatole Tartakovsky
Sent: Sunday, February 19, 2006
7:26 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re:
problem with cell renderer in ComboBox



 



Matt,





    Is it possible to downgrade
ComboBox::dropdown property in the next beta/final release to ListBase so the
subclassing/ability to show more complex dropdowns is possible? Also, what are
the chances of relaxing base types of the internal properties of the controls a
bit (when it does not affect performance) from strongly typed to lower
levels/split them to interfaces. 





    Without code decoration/polymorphism in
the base objects the current architecture is much more code and time
consuming for control development and can be showstopper for 3rd party
controls.





 





Sincerely,





Anatole





 





- Original Message - 







From: Matt Chotin 





To: flexcoders@yahoogroups.com






Sent: Sunday, February
19, 2006 1:16 AM





Subject: RE: [flexcoders]
Re: problem with cell renderer in ComboBox





 



labelField isn't necessary if
you have a cell renderer.  Any chance you
can just use labelFunction if all you're doing is
concatenation?  I'm
almost positive variableRowHeight also isn't going
to work.

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
Behalf Of george_lui
Sent: Friday, February 17, 2006 11:10 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: problem with cell
renderer in ComboBox

good call, but it didn't work.  Really weird.
Do you think I still
need the labelField attribute?

TIA,
George


--- In flexcoders@yahoogroups.com,
"Matt Chotin"
<[EMAIL PROTECTED]> wrote:
>
> What if you take out the quotes around the
renderer?
> 
> -Original Message-
> From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
> Behalf Of george_lui
> Sent: Thursday, February 16, 2006 3:50 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] problem with cell
renderer in ComboBox
> 
> Hi,
> 
> I had a cellrenderer that was originally used
in  datagrid cell.  I've
> since replaced the datagrid with a comboBox.
I'm trying to reuse the
> same cellrenderer in the combo using the code
below.
> 
> 
> 
creationComplete=
>  
>
"event.target.getDropdown().cellRenderer='com.sf.sfv4.view.sharkfin.Full
> NameRenderer';
>
event.target.getDropdown().variableRowHeight=true"
rowCount="10">
>    {
ModelLocator.employees } 
> 
> 
> The FullNameRenderer cellrenderer I have just
takes the first and last
> name of a user vo and concatenates it.
> 
> However this isn't working for the
combobox.  I get and set the
> cellrenderer of the combobox's dropdown property
as stated in this
> group by another member, but it doesn't
work.  Instead I get the user
> vo object displayed.
> 
> I'm confused, I'm using the same dataProvider
and cellrenderer in the
> combobox as I did in the datagrid.  I
think there's a difference
> between the two widgets, but I just don't
know what it is.
> 
> Please advise...
> 
> TIA,
> George
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com

> Yahoo! Groups Links
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com

Yahoo! Groups Links














--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Re: problem with cell renderer in ComboBox

2006-02-21 Thread george_lui
Hi Matt,

You have an example of a labelFunction?  Say I have the blurb below...


funtion foo() {
  ??
}




   
{ ModelLocator.employees } 
  


Here, "ModelLocator.employees" is an array of custom vo objects.  How
do I access the individual attributes of each vo object in this scenario?

TIA,
George

--- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote:
>
> labelField isn't necessary if you have a cell renderer.  Any chance you
> can just use labelFunction if all you're doing is concatenation?  I'm
> almost positive variableRowHeight also isn't going to work.
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of george_lui
> Sent: Friday, February 17, 2006 11:10 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: problem with cell renderer in ComboBox
> 
> good call, but it didn't work.  Really weird. Do you think I still
> need the labelField attribute?
> 
> TIA,
> George
> 
> 
> --- In flexcoders@yahoogroups.com, "Matt Chotin"  wrote:
> >
> > What if you take out the quotes around the renderer?
> > 
> > -Original Message-
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
> On
> > Behalf Of george_lui
> > Sent: Thursday, February 16, 2006 3:50 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] problem with cell renderer in ComboBox
> > 
> > Hi,
> > 
> > I had a cellrenderer that was originally used in  datagrid cell.  I've
> > since replaced the datagrid with a comboBox. I'm trying to reuse the
> > same cellrenderer in the combo using the code below.
> > 
> >  >  creationComplete=
> >  
> >
> "event.target.getDropdown().cellRenderer='com.sf.sfv4.view.sharkfin.Full
> > NameRenderer';
> > event.target.getDropdown().variableRowHeight=true" rowCount="10">
> >{ ModelLocator.employees } 
> > 
> > 
> > The FullNameRenderer cellrenderer I have just takes the first and last
> > name of a user vo and concatenates it.
> > 
> > However this isn't working for the combobox.  I get and set the
> > cellrenderer of the combobox's dropdown property as stated in this
> > group by another member, but it doesn't work.  Instead I get the user
> > vo object displayed.
> > 
> > I'm confused, I'm using the same dataProvider and cellrenderer in the
> > combobox as I did in the datagrid.  I think there's a difference
> > between the two widgets, but I just don't know what it is.
> > 
> > Please advise...
> > 
> > TIA,
> > George
> > 
> > 
> > 
> > 
> > 
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> > Yahoo! Groups Links
> >
> 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: problem with cell renderer in ComboBox

2006-02-21 Thread george_lui
I don't see how this was terribly different from the original code. 
But I tried it anyways and it doesn't work. 

thanx anyways,
geo

--- In flexcoders@yahoogroups.com, "bhaq1972" <[EMAIL PROTECTED]> wrote:
>
> why dont you simplify things a bit. put your FullNameRenderer into 
> the same folder location as your ComboBox mxml application.
> 
> and do this
> 
> 
> function test(event){
> event.target.dropdown.cellRenderer = FullNameRenderer;
> }
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "george_lui"  
> wrote:
> >
> > Y'know I just did a blind copy&paste from some other guy in this
> > group. But yeah, I don't see no getDropdown() method in the api 
> docs.
> >   Just the dropdown property. I did try your setting it to the
> > property and it still didn't work :(
> > 
> > thanx,
> > george
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "Doug Lowder"  
> wrote:
> > >
> > > Hi,
> > > 
> > > I'm not familiar with getDropdown().  Is getDropdown() a valid 
> method
> > > of your combobox?
> > > 
> > > If not, try "event.target.dropdown." instead of
> > > "event.target.getDropdown().".
> > > 
> > > Doug
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com, "george_lui"  
> wrote:
> > > >
> > > > Hi,
> > > > 
> > > > I had a cellrenderer that was originally used in  datagrid 
> cell.  I've
> > > > since replaced the datagrid with a comboBox. I'm trying to 
> reuse the
> > > > same cellrenderer in the combo using the code below.
> > > > 
> > > >  > > >  creationComplete=
> > > > 
> > >
> > "event.target.getDropdown
> ().cellRenderer='com.sf.sfv4.view.sharkfin.FullNameRenderer';
> > > > event.target.getDropdown().variableRowHeight=true" 
> rowCount="10">
> > > >{ ModelLocator.employees } 
> 
> > > > 
> > > > 
> > > > The FullNameRenderer cellrenderer I have just takes the first 
> and last
> > > > name of a user vo and concatenates it.
> > > > 
> > > > However this isn't working for the combobox.  I get and set the
> > > > cellrenderer of the combobox's dropdown property as stated in 
> this
> > > > group by another member, but it doesn't work.  Instead I get 
> the user
> > > > vo object displayed.
> > > > 
> > > > I'm confused, I'm using the same dataProvider and cellrenderer 
> in the
> > > > combobox as I did in the datagrid.  I think there's a 
> difference
> > > > between the two widgets, but I just don't know what it is.
> > > > 
> > > > Please advise...
> > > > 
> > > > TIA,
> > > > George
> > > >
> > >
> >
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Re: problem with cell renderer in ComboBox

2006-02-20 Thread Anatole Tartakovsky





You can make the property writeable in 2.0 - just 
add setter method in the inherited class. The issue is that most of 
the times you access the property, explicit typecasting is made by compiler 
- causing exception if you are using "unrelated" 
datatype. 
 
One approach to solve this issue would be to 
have another compiler keyword that bypasses type checking with dynamic 
resolution on the variable level like
    override dynamic var 
dropdown;
That would obviously cause serious update to the 
typecasting statements making them "quiet" - basically 1.5 behavior that is not 
advertised, but available for hackers - probably would be banned by archtects 
and remain unused by corporate developers.
 
Other well-defined approach is to seriously 
reevaluate extensibility of the product and extend it with tons of interfaces. 
Has been tried number of times with Java, never (to my best knowledge) 
commercially successfully with front-end large scale tool. In the 
end/maintenance stage, I always had to do "fine tuning" by using 
Java scripting products like beanshell.
 
That leaves the third approach I like most. I am 
glad you (presumably unconsciously due to similar problem) remembered 
PowerBuilder scripting language. PB also had single inheritance and no 
decorations. At a certain maturity level they decided to do strong type checking 
and optimization at the expense of "scripting power tricks". The problem was 
that they had significant user base at the time of the change and could not 
afford to loose early adopters. 
 
However, they solved this problem with simplicity 
and pragmatism that always win the users appreciation. They allowed method call 
modifier "dynamic". For simplicity I will switch PowerBuilder type ANY to 
Object :

class a { function test(x:int){ return "a"}}
class b { function test(y:string){ return 
"b"}}
//example of usage
var o:Object = new a(); o.dynamic test(5);o.invoke("test", 
5);

var o:Object = new b(); o.dynamic test("abc");o.invoke("test", 
"abc");
They also made sure that events (seldom called as response to user 
interaction/internal changes) are staying dynamic - no strong type checking 
there - no need for endless switch/case statement typecasting the event type and 
missing the new ones as the controls base is extended.
 
The "legacy" code was saved by trivial replace of non-compiling statements 
with dynamic calls, the "core" run-time code base by using similar trick 
retained higher percentage of the previous versions tested code that continued 
to work. Main objective - giving application developers more "strict" 
intellisense environment eliminating typos while allowing for more dynamic 
coding when needed worked very well.
 
Hope it can be integrated in the current version of the compiler.
 
Thank you,
Anatole Tartakovsky
 
P.S. 
It would be interesting to get feedback from the current Flex developers 
who have production applications in 1.5 on the chances/effort of the conversion 
from 1.5 to 2.0. That very well might give an indication of importance of the 
language changes - it very well might be just my imagination. That of course is 
only important if those applications have to be upgraded to 2.0.
 
Some other scripting languages are also subject for review as the 
integrationsimplicity and power of those keep driving the users trends - PHP and 
Phython is a good example what integration model can do to the environment by 
enabling 3rd parties.
 
 

  - Original Message - 
  From: 
  bhaq1972 
  
  To: flexcoders@yahoogroups.com 
  Sent: Monday, February 20, 2006 4:52 
  AM
  Subject: [flexcoders] Re: problem with 
  cell renderer in ComboBox
  i would also like 
  to see the dropdown property made into a 'Read/Write'.i had to 
  override the getDropdown() method which gave me problems when going from 
  flex1 to 1.5 (i know this method is not in the api)other technologies 
  such as PowerBuilder is not an issue.--- In flexcoders@yahoogroups.com, 
  "Anatole Tartakovsky" <[EMAIL PROTECTED]> wrote:>> 
  Matt,> Is it possible to downgrade 
  ComboBox::dropdown property in the next beta/final release to ListBase so 
  the subclassing/ability to show more complex dropdowns is possible? Also, 
  what are the chances of relaxing base types of the internal properties of 
  the controls a bit (when it does not affect performance) from strongly 
  typed to lower levels/split them to interfaces. 
  > Without code decoration/polymorphism in the 
  base objects the current architecture is much more code and time consuming 
  for control development and can be showstopper for 3rd party 
  controls.> > Sincerely,> Anatole> > - 
  Original Message - >   From: Matt Chotin 
  >   To: flexcoders@yahoogroups.com >   Sent: 
  Sunday, February 19, 2006 1

[flexcoders] Re: problem with cell renderer in ComboBox

2006-02-20 Thread bhaq1972
i would also like to see the dropdown property made into 
a 'Read/Write'.

i had to override the getDropdown() method which gave me problems 
when going from flex1 to 1.5 (i know this method is not in the api)

other technologies such as PowerBuilder is not an issue.



--- In flexcoders@yahoogroups.com, "Anatole Tartakovsky" 
<[EMAIL PROTECTED]> wrote:
>
> Matt,
> Is it possible to downgrade ComboBox::dropdown property in the 
next beta/final release to ListBase so the subclassing/ability to 
show more complex dropdowns is possible? Also, what are the chances 
of relaxing base types of the internal properties of the controls a 
bit (when it does not affect performance) from strongly typed to 
lower levels/split them to interfaces. 
> Without code decoration/polymorphism in the base objects the 
current architecture is much more code and time consuming for 
control development and can be showstopper for 3rd party controls.
> 
> Sincerely,
> Anatole
> 
> - Original Message - 
>   From: Matt Chotin 
>   To: flexcoders@yahoogroups.com 
>   Sent: Sunday, February 19, 2006 1:16 AM
>   Subject: RE: [flexcoders] Re: problem with cell renderer in 
ComboBox
> 
> 
>   labelField isn't necessary if you have a cell renderer.  Any 
chance you
>   can just use labelFunction if all you're doing is 
concatenation?  I'm
>   almost positive variableRowHeight also isn't going to work.
> 
>   -Original Message-
>   From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
>   Behalf Of george_lui
>   Sent: Friday, February 17, 2006 11:10 AM
>   To: flexcoders@yahoogroups.com
>   Subject: [flexcoders] Re: problem with cell renderer in ComboBox
> 
>   good call, but it didn't work.  Really weird. Do you think I 
still
>   need the labelField attribute?
> 
>   TIA,
>   George
> 
> 
>   --- In flexcoders@yahoogroups.com, "Matt Chotin"  
wrote:
>   >
>   > What if you take out the quotes around the renderer?
>   > 
>   > -Original Message-
>   > From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED]
>   On
>   > Behalf Of george_lui
>   > Sent: Thursday, February 16, 2006 3:50 PM
>   > To: flexcoders@yahoogroups.com
>   > Subject: [flexcoders] problem with cell renderer in ComboBox
>   > 
>   > Hi,
>   > 
>   > I had a cellrenderer that was originally used in  datagrid 
cell.  I've
>   > since replaced the datagrid with a comboBox. I'm trying to 
reuse the
>   > same cellrenderer in the combo using the code below.
>   > 
>   >>  creationComplete=
>   >  
>   >
>   "event.target.getDropdown
().cellRenderer='com.sf.sfv4.view.sharkfin.Full
>   > NameRenderer';
>   > event.target.getDropdown().variableRowHeight=true" 
rowCount="10">
>   >{ ModelLocator.employees } 

>   > 
>   > 
>   > The FullNameRenderer cellrenderer I have just takes the first 
and last
>   > name of a user vo and concatenates it.
>   > 
>   > However this isn't working for the combobox.  I get and set the
>   > cellrenderer of the combobox's dropdown property as stated in 
this
>   > group by another member, but it doesn't work.  Instead I get 
the user
>   > vo object displayed.
>   > 
>   > I'm confused, I'm using the same dataProvider and cellrenderer 
in the
>   > combobox as I did in the datagrid.  I think there's a 
difference
>   > between the two widgets, but I just don't know what it is.
>   > 
>   > Please advise...
>   > 
>   > TIA,
>   > George
>   > 
>   > 
>   > 
>   > 
>   > 
>   > --
>   > Flexcoders Mailing List
>   > FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>   > Search Archives:
>   > http://www.mail-archive.com/flexcoders%40yahoogroups.com 
>   > Yahoo! Groups Links
>   >
> 
> 
> 
> 
> 
> 
>   --
>   Flexcoders Mailing List
>   FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>   Search Archives:
>   http://www.mail-archive.com/flexcoders%40yahoogroups.com 
>   Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 
> 
>   --
>   Flexcoders Mailing List
>   FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>   Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.com 
> 
> 
> 
>   SPONSORED LINKS Web site design development  Computer software 
development  Software design and development  
> Macromedia flex  Software development best practice  
> 
> 
> --

[flexcoders] Re: problem with cell renderer in ComboBox

2006-02-20 Thread bhaq1972
why dont you simplify things a bit. put your FullNameRenderer into 
the same folder location as your ComboBox mxml application.

and do this


function test(event){
event.target.dropdown.cellRenderer = FullNameRenderer;
}




--- In flexcoders@yahoogroups.com, "george_lui" <[EMAIL PROTECTED]> 
wrote:
>
> Y'know I just did a blind copy&paste from some other guy in this
> group. But yeah, I don't see no getDropdown() method in the api 
docs.
>   Just the dropdown property. I did try your setting it to the
> property and it still didn't work :(
> 
> thanx,
> george
> 
> 
> --- In flexcoders@yahoogroups.com, "Doug Lowder"  
wrote:
> >
> > Hi,
> > 
> > I'm not familiar with getDropdown().  Is getDropdown() a valid 
method
> > of your combobox?
> > 
> > If not, try "event.target.dropdown." instead of
> > "event.target.getDropdown().".
> > 
> > Doug
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "george_lui"  
wrote:
> > >
> > > Hi,
> > > 
> > > I had a cellrenderer that was originally used in  datagrid 
cell.  I've
> > > since replaced the datagrid with a comboBox. I'm trying to 
reuse the
> > > same cellrenderer in the combo using the code below.
> > > 
> > >  > >  creationComplete=
> > > 
> >
> "event.target.getDropdown
().cellRenderer='com.sf.sfv4.view.sharkfin.FullNameRenderer';
> > > event.target.getDropdown().variableRowHeight=true" 
rowCount="10">
> > >{ ModelLocator.employees } 

> > > 
> > > 
> > > The FullNameRenderer cellrenderer I have just takes the first 
and last
> > > name of a user vo and concatenates it.
> > > 
> > > However this isn't working for the combobox.  I get and set the
> > > cellrenderer of the combobox's dropdown property as stated in 
this
> > > group by another member, but it doesn't work.  Instead I get 
the user
> > > vo object displayed.
> > > 
> > > I'm confused, I'm using the same dataProvider and cellrenderer 
in the
> > > combobox as I did in the datagrid.  I think there's a 
difference
> > > between the two widgets, but I just don't know what it is.
> > > 
> > > Please advise...
> > > 
> > > TIA,
> > > George
> > >
> >
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Re: problem with cell renderer in ComboBox

2006-02-19 Thread Anatole Tartakovsky





Matt,
    Is it possible to downgrade 
ComboBox::dropdown property in the next beta/final release to ListBase so the 
subclassing/ability to show more complex dropdowns is possible? Also, what are 
the chances of relaxing base types of the internal properties of the controls a 
bit (when it does not affect performance) from strongly typed to lower 
levels/split them to interfaces. 
    Without code 
decoration/polymorphism in the base objects the current architecture is 
much more code and time consuming for control development and can be 
showstopper for 3rd party controls.
 
Sincerely,
Anatole
 
- Original Message - 

  From: 
  Matt Chotin 
  
  To: flexcoders@yahoogroups.com 
  Sent: Sunday, February 19, 2006 1:16 
  AM
  Subject: RE: [flexcoders] Re: problem 
  with cell renderer in ComboBox
  labelField isn't necessary if you have a cell 
  renderer.  Any chance youcan just use labelFunction if all you're 
  doing is concatenation?  I'malmost positive variableRowHeight also 
  isn't going to work.-Original Message-From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] OnBehalf Of george_luiSent: 
  Friday, February 17, 2006 11:10 AMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Re: problem with cell 
  renderer in ComboBoxgood call, but it didn't work.  Really weird. 
  Do you think I stillneed the labelField 
  attribute?TIA,George--- In flexcoders@yahoogroups.com, 
  "Matt Chotin" <[EMAIL PROTECTED]> wrote:>> What if you take out 
  the quotes around the renderer?> > -Original 
  Message-> From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED]On> Behalf Of george_lui> 
  Sent: Thursday, February 16, 2006 3:50 PM> To: 
  flexcoders@yahoogroups.com> Subject: [flexcoders] problem with cell 
  renderer in ComboBox> > Hi,> > I had a 
  cellrenderer that was originally used in  datagrid cell.  
  I've> since replaced the datagrid with a comboBox. I'm trying to reuse 
  the> same cellrenderer in the combo using the code below.> 
  > >  
  creationComplete=>  
  >"event.target.getDropdown().cellRenderer='com.sf.sfv4.view.sharkfin.Full> 
  NameRenderer';> event.target.getDropdown().variableRowHeight=true" 
  rowCount="10">>    { 
  ModelLocator.employees } > 
  > > The FullNameRenderer cellrenderer I have 
  just takes the first and last> name of a user vo and concatenates 
  it.> > However this isn't working for the combobox.  I get 
  and set the> cellrenderer of the combobox's dropdown property as stated 
  in this> group by another member, but it doesn't work.  Instead I 
  get the user> vo object displayed.> > I'm confused, I'm 
  using the same dataProvider and cellrenderer in the> combobox as I did 
  in the datagrid.  I think there's a difference> between the two 
  widgets, but I just don't know what it is.> > Please 
  advise...> > TIA,> George> > > 
  > > > --> Flexcoders Mailing List> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt> 
  Search Archives:> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  > Yahoo! Groups 
  Links>--Flexcoders Mailing ListFAQ: 
  http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  Yahoo! Groups Links





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Re: problem with cell renderer in ComboBox

2006-02-18 Thread Matt Chotin
labelField isn't necessary if you have a cell renderer.  Any chance you
can just use labelFunction if all you're doing is concatenation?  I'm
almost positive variableRowHeight also isn't going to work.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of george_lui
Sent: Friday, February 17, 2006 11:10 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: problem with cell renderer in ComboBox

good call, but it didn't work.  Really weird. Do you think I still
need the labelField attribute?

TIA,
George


--- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote:
>
> What if you take out the quotes around the renderer?
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of george_lui
> Sent: Thursday, February 16, 2006 3:50 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] problem with cell renderer in ComboBox
> 
> Hi,
> 
> I had a cellrenderer that was originally used in  datagrid cell.  I've
> since replaced the datagrid with a comboBox. I'm trying to reuse the
> same cellrenderer in the combo using the code below.
> 
>   creationComplete=
>  
>
"event.target.getDropdown().cellRenderer='com.sf.sfv4.view.sharkfin.Full
> NameRenderer';
> event.target.getDropdown().variableRowHeight=true" rowCount="10">
>{ ModelLocator.employees } 
> 
> 
> The FullNameRenderer cellrenderer I have just takes the first and last
> name of a user vo and concatenates it.
> 
> However this isn't working for the combobox.  I get and set the
> cellrenderer of the combobox's dropdown property as stated in this
> group by another member, but it doesn't work.  Instead I get the user
> vo object displayed.
> 
> I'm confused, I'm using the same dataProvider and cellrenderer in the
> combobox as I did in the datagrid.  I think there's a difference
> between the two widgets, but I just don't know what it is.
> 
> Please advise...
> 
> TIA,
> George
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: problem with cell renderer in ComboBox

2006-02-17 Thread george_lui
good call, but it didn't work.  Really weird. Do you think I still
need the labelField attribute?

TIA,
George


--- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote:
>
> What if you take out the quotes around the renderer?
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of george_lui
> Sent: Thursday, February 16, 2006 3:50 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] problem with cell renderer in ComboBox
> 
> Hi,
> 
> I had a cellrenderer that was originally used in  datagrid cell.  I've
> since replaced the datagrid with a comboBox. I'm trying to reuse the
> same cellrenderer in the combo using the code below.
> 
>   creationComplete=
>  
> "event.target.getDropdown().cellRenderer='com.sf.sfv4.view.sharkfin.Full
> NameRenderer';
> event.target.getDropdown().variableRowHeight=true" rowCount="10">
>{ ModelLocator.employees } 
> 
> 
> The FullNameRenderer cellrenderer I have just takes the first and last
> name of a user vo and concatenates it.
> 
> However this isn't working for the combobox.  I get and set the
> cellrenderer of the combobox's dropdown property as stated in this
> group by another member, but it doesn't work.  Instead I get the user
> vo object displayed.
> 
> I'm confused, I'm using the same dataProvider and cellrenderer in the
> combobox as I did in the datagrid.  I think there's a difference
> between the two widgets, but I just don't know what it is.
> 
> Please advise...
> 
> TIA,
> George
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: problem with cell renderer in ComboBox

2006-02-17 Thread george_lui
Y'know I just did a blind copy&paste from some other guy in this
group. But yeah, I don't see no getDropdown() method in the api docs.
  Just the dropdown property. I did try your setting it to the
property and it still didn't work :(

thanx,
george


--- In flexcoders@yahoogroups.com, "Doug Lowder" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> I'm not familiar with getDropdown().  Is getDropdown() a valid method
> of your combobox?
> 
> If not, try "event.target.dropdown." instead of
> "event.target.getDropdown().".
> 
> Doug
> 
> 
> --- In flexcoders@yahoogroups.com, "george_lui"  wrote:
> >
> > Hi,
> > 
> > I had a cellrenderer that was originally used in  datagrid cell.  I've
> > since replaced the datagrid with a comboBox. I'm trying to reuse the
> > same cellrenderer in the combo using the code below.
> > 
> >  >  creationComplete=
> > 
>
"event.target.getDropdown().cellRenderer='com.sf.sfv4.view.sharkfin.FullNameRenderer';
> > event.target.getDropdown().variableRowHeight=true" rowCount="10">
> >{ ModelLocator.employees } 
> > 
> > 
> > The FullNameRenderer cellrenderer I have just takes the first and last
> > name of a user vo and concatenates it.
> > 
> > However this isn't working for the combobox.  I get and set the
> > cellrenderer of the combobox's dropdown property as stated in this
> > group by another member, but it doesn't work.  Instead I get the user
> > vo object displayed.
> > 
> > I'm confused, I'm using the same dataProvider and cellrenderer in the
> > combobox as I did in the datagrid.  I think there's a difference
> > between the two widgets, but I just don't know what it is.
> > 
> > Please advise...
> > 
> > TIA,
> > George
> >
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: problem with cell renderer in ComboBox

2006-02-16 Thread Doug Lowder
Hi,

I'm not familiar with getDropdown().  Is getDropdown() a valid method
of your combobox?

If not, try "event.target.dropdown." instead of
"event.target.getDropdown().".

Doug


--- In flexcoders@yahoogroups.com, "george_lui" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> I had a cellrenderer that was originally used in  datagrid cell.  I've
> since replaced the datagrid with a comboBox. I'm trying to reuse the
> same cellrenderer in the combo using the code below.
> 
>   creationComplete=
> 
"event.target.getDropdown().cellRenderer='com.sf.sfv4.view.sharkfin.FullNameRenderer';
> event.target.getDropdown().variableRowHeight=true" rowCount="10">
>{ ModelLocator.employees } 
> 
> 
> The FullNameRenderer cellrenderer I have just takes the first and last
> name of a user vo and concatenates it.
> 
> However this isn't working for the combobox.  I get and set the
> cellrenderer of the combobox's dropdown property as stated in this
> group by another member, but it doesn't work.  Instead I get the user
> vo object displayed.
> 
> I'm confused, I'm using the same dataProvider and cellrenderer in the
> combobox as I did in the datagrid.  I think there's a difference
> between the two widgets, but I just don't know what it is.
> 
> Please advise...
> 
> TIA,
> George
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/