Have you set rendererIsEditor to true and the editorDataField="selectedDate"?
--- Louie Penaflor <[EMAIL PROTECTED]> wrote: > You are correct. It is itemEditEnd. I was just in > a rush. > > > > As for the issue, the date is populating right. > It's when I select a > date from the calendar. > > > > When you select a date, I dispatch the DataGridEvent > itemEditEnd. This > even should have > > > > Event.currentTarget.editedItemRenderer and > event.target.itemEditorInstance, which are both > returning null. This > points out to me that when you click or the > DateField that opens up the > calendar, it's not focusing into the datagrid as an > editor. I'm > wondering how I can invoke this manually? Does that > make sense? > > > > ________________________________ > > From: flexcoders@yahoogroups.com > [mailto:[EMAIL PROTECTED] On > Behalf Of leds usop > Sent: Tuesday, November 28, 2006 11:50 AM > To: flexcoders@yahoogroups.com > Subject: Re: [flexcoders] Problems with a DateField > as an > itemRenderer/editor > > > > Is onItemEnd a custom event listener? or do you mean > onItemEditEnd? I dont recall having an 'onItemEnd' > associated with Datagrid listener in any way.. > please > correct me if im wrong. > > When you use a datefield as item renderer or item > editor a list control (or any drop-in item > renderer/item editor), make sure that the data > provider of that list control has a field of type > Date > (or the expected data type of the drop-in item > renderer you used). Since Data Grid is derived from > List base, this means it applies to it as well. Have > you considered that? > > --- Louie Penaflor <[EMAIL PROTECTED] > <mailto:lpenaflor%40woccu.org> > > wrote: > > > I'm having an issue with DataGridEvent (onItemEnd) > > and the DateField > > class. Basically, I've developed a framework that > > uses onItemEnd from > > the datagrid. I have components like the combobox > > for example... > > onChange calls onItemEnd which takes the data of > the > > combobox and puts > > it in the dataField of the datagrid, then makes a > > service call to update > > to the database. I've gotten this to work great > with > > many components but > > the dateField I'm having a horrible time with. > > > > when I dispatchEvent (onitemend) for example, I > use > > event.currentTarget.editedItemRenderer to get the > > value from > > event.target.itemEditorInstance. Which both don't > > exist when I > > dispatchEvent from the calendar select date > > (onClose) event handler. > > > > This works when I have the dateField as an Editor > > only and using the > > default renderer. This is an issue becuase it > > creates another click for > > the user. I think the root of my problem is that > > when you click on the > > datefield to open the calendar, it doesn't invoke > it > > as an editor in the > > datagrid. Is there a way to force this? > > > > Any help would be appreciated. Thanks in advance. > > > > > > > > Louie Penaflor > > > > Web Software Developer > > > > World Council of Credit Unions, Inc. > > > > Ph: (608)231-7932 > > > > > > > > This is a transmission from World Council of > Credit > > Unions, Inc. and > > contains information that is confidential. If you > > are not the intended > > addressee or authorized to receive for the > > addressee, then any > > disclosure, copying, distribution, or use of the > > contents of this > > message is prohibited. If you have received this > > transmission in error, > > please destroy it and notify the sender > immediately > > at the transmitting > > e-mail address. If you are the intended recipient, > > please be advised > > that this e-mail transmission is not encrypted or > > otherwise protected > > from potential misappropriation or misuse. World > > Council of Credit > > Unions, Inc. expressly disclaims any and all > > liability for harm > > resulting from the misappropriation, interception > or > > misuse of the > > information contained in this transmission. > > > > > > > > > > __________________________________________________________ > Do you Yahoo!? > Everyone is raving about the all-new Yahoo! Mail > beta. > http://new.mail.yahoo.com > <http://new.mail.yahoo.com> > > > > ____________________________________________________________________________________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com