Yes, I will need to edit the item as well. I am using httpservice to grab a jason encoded string from PHP.
I jason decode it into an array collection.
I am currently looping thtough the result set, and convert all of the date fields to date objects, and that seems to work ... But ... It is really not efficient. I do not want to loop through the items in PHP / flex ... Is there a way to do the convertion using a custom date renderer or just before the date rendere tries to use it ?
Main Topics
Browse All Topics





by: mplordPosted on 2009-05-10 at 07:25:33ID: 24348494
Trying to use a DateField as a an itemRenderer implies that you might want to edit the data using DateField as an itemEditor as well. If you just want to display the date and not edit it, you might as well forget the itemRenderer and have the date displayed as text.
If you do want the field to be editable using DateField as an itemEditor (as well as itemRenderer), any answer here is going to depend on whether you're setting the dataProvider of the AdvancedDataGrid using XML, or for example an ArrayCollection.
Could you clarify, and perhaps provide an example of how you're setting the dataProvider for the grid?