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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:54:55+00:00 2026-06-03T02:54:55+00:00

I have a flex spark list that is populated by a dynamically generated ArrayCollection

  • 0

I have a flex spark list that is populated by a dynamically generated ArrayCollection (and is used in a recyclable component). If the Array Collection is less than 9 items, a checkbox item renderer is applied. If the ArrayCollection is greater than 8 items, I want to revert back to the default sparkList item Renderer. How do I remove the itemRenderer from the spark list?

if ((ac.length>0)&&(ac.length <=8))
{
    //implement a renderer in the control for check boxes - this works!
    this._s_g_ListBoxLong._list.itemRenderer = new ClassFactory(morris.renderers.Renderer_checkBoxes);
}
else if (ac.length >=9)
{
    //apply the default item renderer for a spark list or remove the itemRenderer pointer
    //?????  HOW DO I DO THIS?
}
else
{
    //do nothing
}
this._s_g_ListBoxLong._list.dataProvider = ac;
  • 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-03T02:54:56+00:00Added an answer on June 3, 2026 at 2:54 am

    Try using DefaultItemRenderer.

    The DefaultItemRenderer class defines the default item renderer for a List control. The default item renderer just draws the text associated with each item in the list.

    this._s_g_ListBoxLong._list.itemRenderer = new ClassFactory(DefaultItemRenderer);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Flex Spark List which can be populated with any number of
I have an ArrayCollection that is the dataProvider for a spark.components.List , which has
I have a custom Flex 4.5 component (to be used in a List) -
I have a Flex ComboBox that gets populated by a dataprovider all is well...
Say I have the following custom component: <s:Group xmlns:fx=http://ns.adobe.com/mxml/2009 xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx> <fx:Script> <![CDATA[ [Bindable]
In Flex 4 (beta 2), I have a list control populated from an XMLListCollection.
I have a spark list component and a corresponding custom itemrenderer : list component:
I have created an ItemRenderer for the Spark List component with the following code.
i have main Application which is Spark component <s:Application xmlns:fx=http://ns.adobe.com/mxml/2009 xmlns:s=library://ns.adobe.com/flex/spark minWidth=955 minHeight=600 initialize=initApp();
I have a view like this in my Flex mobile Application: <s:View xmlns:fx=http://ns.adobe.com/mxml/2009 xmlns:s=library://ns.adobe.com/flex/spark

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.