Barry,
Here is a sample of subclassing I mentioned. Hope this helps:

package  com.theriabook.controls
{
 import mx.controls.DateField
 import mx.controls.dataGridClasses.DataGridListData;
 import mx.controls.listClasses.ListData;

 public class DateField extends mx.controls.DateField
 {
  private function checked (val : Object):Date {
   if (val is String)
    return new Date(Date.parse(val as String))
   else
    return val as Date
  }

  override public function set data(value:Object):void {
   if (listData && listData is DataGridListData)
    value[DataGridListData(listData).dataField] = 
checked(value[DataGridListData(listData).dataField]);
         else if (listData is ListData && ListData(listData).labelField in 
data)
    value[ListData(listData).labelField] = 
checked(value[ListData(listData).labelField]);
   super.data = value;
  }
 }
}


----- Original Message ----- 
From: "barry.beattie" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, September 03, 2006 6:04 PM
Subject: [flexcomponents] Re: dateField broken when in a datagrid: what to 
do?


> Anatole
>
> thankyou for you help Anatole...
>
> ....but could I ask of you to explain further or perhaps point to a
> specific example showing this?
>
> my lack of experiance in manipulating Flex components is hindering my
> ability to apply your suggestion.
>
> cheers
> barry.b
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
> 



 
Yahoo! Groups Links

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

<*> 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/
 


Reply via email to