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 8120533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T05:11:06+00:00 2026-06-06T05:11:06+00:00

I try to implement footer datagrid with allowMultipleSelection properties. But in my case, it

  • 0

I try to implement footer datagrid with allowMultipleSelection properties.
But in my case, it seems not to work.
Can you help me to implement this function.

Thanks

 package fr.component.dgFooter
{
    import mx.controls.DataGrid;
    import mx.controls.dataGridClasses.DataGridColumn;

    public class FooterDataGrid extends DataGrid
    {
        protected var _footerAllowMultipleSelection:Boolean=false;





        public function FooterDataGrid()
        {
            super();
            if(_footerAllowMultipleSelection){
                this.allowMultipleSelection=true;
            }
            else{

            }
        }

        public function get footerAllowMultipleSelection():Boolean
        {
            return _footerAllowMultipleSelection;
        }

        public function set footerAllowMultipleSelection(value:Boolean):void
        {
            _footerAllowMultipleSelection = value;
        }

        protected var footer:DataGridFooter;

        protected var footerHeight:int = 22;



        override protected function createChildren():void
        {
            super.createChildren();

            if (!footer)
            {
                footer = new DataGridFooter();
                footer.styleName = this;
                addChild(footer);
            }
        }

        override protected function adjustListContent(unscaledWidth:Number = -1,
            unscaledHeight:Number = -1):void
        {
            super.adjustListContent(unscaledWidth, unscaledHeight);

            listContent.setActualSize(listContent.width, listContent.height - footerHeight);
            //this deals w/ having locked columns - it's handled differently in
            //the dg and the adg
            footer.setActualSize(listContent.width+listContent.x, footerHeight);
            footer.move(1, listContent.y + listContent.height + 1);
        }

        override public function invalidateDisplayList():void
        {
            super.invalidateDisplayList();
            if (footer)
                footer.invalidateDisplayList();
        }
    }

}
  • 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-06T05:11:07+00:00Added an answer on June 6, 2026 at 5:11 am

    Your code only checks _footerAllowMultipleSelection and sets allowMultipleSelection in the constructor, when the value is always false.

    Set the allowMultipleSelection property in the setter of footerAllowMultipleSelection. You can also change the initial value of _footerAllowMultipleSelection to true.

    But why are you wrapping it in a getter and setter at all? The allowMultipleSelection property is already public, so it can be set without providing another property in your subclass that does the exact same thing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I try to implement a table function by following Tony Andrews example . But
I try to implement a query by using Between Clause,but there is some problem
If I try to implement my class on this file I get an error
If I try to implement this simple-as-possible example: Update Content with AJAXRefreshRequest it does
I had try to implement the send me log feature into my apps but
I try to implement simple server on python based on HTTPServer. How can i
I try to implement Hash join in Hadoop. However, Hadoop seems to have already
I try to implement a Google +1 button in my website, but for some
I try to implement C++ properties as templates as defined in WikiPedia template <typename
I try to implement the following function : template<typename T> class a { private:

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.