How to get selected date on DateField Adobe Flex Datagrid ItemRenderer?

Calling into renderers is the wrong way round, have the renderer bubble an event out with the selectedDate and the id of the data item it is rendering. Handle the event outside of the renderer.

Uhhm. I'm quite a newbie with flex so I don't think I understood what you're trying to point out. Can you kindly give me some hints on how exactly I can do it?

:) – Smiley Face Jul 23 '10 at 14:19 You'll need to roll your own renderer. Have it extend DateField. Unfortunately, the changeHandler for the selectedDate changing is private rather than protected, so you have to do this the clunky way.

Override createChildren and add an event listener for a CalendarLayoutChangeEvent.CHANGE. In your handler for this, dispatch a custom event which contains the event. NewDate property and whatever you use in your data item for id.

Make sure it bubbles. Add a listener for this event to your DataGrid, and do whatever you need to do with it. – Gregor Kiddie Jul 23 '10 at 15:00.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions