Who can tell me how to use flex advanceddatagrid?

Source: Internet
Author: User

Note:The first column is the tree with checkbox.

 

For more information, see:

Labelfield is unable to display the attributes of the Element Object (carinfo. car_name). It seems that only attributes of the same level can be displayed. How can this problem be solved? Hope you can help me, thanks!

 

<Mx: advanceddatagrid id = "ADG" width = "100%" Height = "100%" dataprovider = "{instance. Cars }"
Variablerowheight = "true" wordwrap = "true" verticalgridlinecolor = "0x339900" headercolors = "[0x339900, 0 xffebcd]" horizontalgridlinecolor = "0x8b4513">
<Mx: columns>
<Mx: advanceddatagridcolumn headertext = "vehicle Name" datafield = "carinfo. car_name"/>
<Mx: advanceddatagridcolumn headertext = "terminal key" datafield = "carinfo. terminal_key"/>
<Mx: advanceddatagridcolumn headertext = "SIM code" datafield = "carinfo. sim_code"/>
</MX: columns>
</MX: advanceddatagrid>

 

/***** VO. Car ****/

[Bindable]

Public class car
{
Private VaR _ term: baseterminal;
Private VaR _ imagename: string;
Private VaR _ icon: icon;
Private VaR _ carinfo: carinfo;

...............

}

 

 

[Bindable]
[Remoteclass (alias = "VO. Car")]
Public class carinfo
{
Public var car_name: string;
Public var car_id: string;
Public var group_name: string;
Public var speed: int;
Public var terminal_key: string;
Public var sim_code: string;
Public var fuel_min: int;
Public var fuel_max: int;
Public var fuel_size: int;

...........

}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.