Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9087117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T21:38:35+00:00 2026-06-16T21:38:35+00:00

This is my DataGrid Code in Flex Application But it is Giving Wrong Output..

  • 0

This is my DataGrid Code in Flex Application But it is Giving Wrong Output..

<mx:DataGrid id="userListDataGrid" x="60" y="40" width="520" height="148" dataProvider="{schedule}">
    <mx:columns>
        <mx:DataGridColumn dataField="courseDate" headerText="Date"/>               
        <mx:DataGridColumn id="usertype" dataField="userType" headerText="User Type"/>          
        <mx:DataGridColumn id="button1" headerText="Reminder">
            <mx:itemRenderer>
                <mx:Component>
                    <mx:HBox  dataChange="join_changeHandler()">
                             <mx:Script>
                            <![CDATA[
                                import mx.controls.Alert;
                                import valueObjects.CalendarVO;
                                [Bindable]public var labelString:String = null;
                                public var calendar:CalendarVO;
                                protected function join_changeHandler():void
                                {
                                    for each(var cal:Object in outerDocument.schedule)
                                    {
                                        calendar = new CalendarVO();//Hear CalendarVO has Enum in java(HOST,ATTENDEE)only
                                        calendar.userType = cal.userType;
                                        //Alert.show(calendar.userType.toString());
                                        if(calendar.userType.toString() == "HOST")
                                        {
                                            join.visible = true;
                                            start.visible = false;
                                        }
                                        else
                                        {
                                            join.visible = false;
                                            start.visible = true;
                                        }
                                    }

                                }
                            ]]>
                        </mx:Script>
                        <mx:Button id="join" label="Join" borderColor="#5d93b9" color="#04becf">
                        </mx:Button>  
                        <mx:Button id="start" label="Start" borderColor="#5d93b9" color="#04becf"/>

                    </mx:HBox>
                </mx:Component>
            </mx:itemRenderer>
        </mx:DataGridColumn>    
    </mx:columns>
</mx:DataGrid>

Actually my intention is UserType value

    Host----Start Button
Attendee----JOin Button will be visiable

Finally i want this Out put But i’m not Getting .. i think some thing is Override…give me Suggestion..

Fanally My DataGrid Visiable Exactly Like this..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T21:38:36+00:00Added an answer on June 16, 2026 at 9:38 pm

    Finally i got Result hear is my Code..

    <mx:DataGrid id="userListDataGrid" x="60" y="40" width="520" height="148" dataProvider="{schedule}">
        <mx:columns>
            <mx:DataGridColumn dataField="courseDate" headerText="Date"/>               
            <mx:DataGridColumn dataField="courseName" headerText="Course Name"/>
            <mx:DataGridColumn id="usertype" dataField="userType" headerText="User Type"/>
    
            <mx:DataGridColumn headerText="Reminder">
                <mx:itemRenderer>
                    <mx:Component>
                        <mx:HBox  dataChange="join_changeHandler()">
    
                            <mx:Script>
                                <![CDATA[
                                    protected function join_changeHandler():void
                                    {
                                      if(join.label == 'HOST')
                                            join.label="Start";
                                        else
                                            join.label="Join";
                                    }
                                ]]>
                            </mx:Script>
                            <mx:Button id="join" label="{data.userType}" borderColor="#5d93b9" color="#04becf"/>
                        </mx:HBox>
                    </mx:Component>
                </mx:itemRenderer>
            </mx:DataGridColumn>
    
        </mx:columns>
    </mx:DataGrid>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created an application to show a datagrid with a custom column in Flex
in my flex application i have a datagrid as 2 columns editable and remaining
I'm newbie to flex and this forum as well. I've a datagrid which displayed
I am using a mx:DataGrid component in my flex application. I showing a grid
i am using below code for using linkbutton in flex datagrid <mx:DataGridColumn headerText=Case ID
Actually in my Flex Application DataGrid column getting one value like Sat Sep 1
I have simple mxml code <mx:DataGrid id=DGG editable=true> <mx:dataProvider> <mx:Object scheduledDate=4/1/2006/> </mx:dataProvider> </mx:DataGrid> <mx:Button
In Flex I'm using the following code to allow sorting in a DataGrid (the
I have this datagrid <DataGrid Grid.Row=3 Name=DataGrid6S AutoGenerateColumns=False VerticalScrollBarVisibility=Auto> <DataGrid.Columns> <DataGridTextColumn Header=ID Width=50 Binding={Binding
So i got this DataGrid in which i manually defined all the columns: <DataGrid

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.