• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Why and when to override data method in Action script using flex comp or event ?

 
Ranch Hand
Posts: 397
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

override public function set data(value:object):void {

Regards,
Prabhat
 
Ranch Hand
Posts: 95
Spring Flex Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is usually used in ItemRenderer.

For complete understanding read the blog.
http://blogs.adobe.com/aharui/2008/02/checkbox_selection_in_datagrid.html

Scenario.

List of check boxes with labels. Values retuned from the server are date of birth.

12-12-2010 <check box>
12-11-2010 <check box>
12-10-2010 <check box>
12-05-2010 <check box>

intead of above we want to show.

10 years old <check box>
5 years old <check box>
2 years old <check box>
8 years old <check box>

set data() can be used for this purpose.

e.g - 2

Values returned from teh server are first name and last name and you want to show them as one label.

set data() can be override to display the First Name , Last Name as one string.


Hope this will help.



 
It's feeding time! Give me the food you were going to give to this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic