Comments on: Open Source Flex Components: AdvancedList and CheckBoxList https://joshblog.net/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/ Archive of older blog posts written by Josh Tynjala about Flash, Flex, and ActionScript Wed, 26 Jun 2013 02:52:46 +0000 hourly 1 https://wordpress.org/?v=4.9.9 By: Asif Nawaz https://joshblog.net/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/#comment-21376 Wed, 23 Nov 2011 17:17:26 +0000 http://www.zeuslabs.us/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/#comment-21376 I used this component in Flex 3 and Flash Builder 4.0, it works fine. But When I used this in Flash Builder 4.5 like
<toolbox:CheckBoxList id=”checkList” />
It do not allow to set its id property, rest all other properties can be set. It gives following error.
1046: Type was not found or was not a compile-time constant: CheckBoxList

]]>
By: Asif Nawaz https://joshblog.net/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/#comment-14758 Thu, 28 Jul 2011 16:40:50 +0000 http://www.zeuslabs.us/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/#comment-14758 Nice work Josh. Need a help more. What should i change in this code so that “last selected item should remain highlighted” in checkboxList component?

]]>
By: consultor java » Selecciones Multiples en Flex VideoTutoriales | Frameworks | Servidores | Aplicaciones Seguras | Performance | Rendimiento | Noticias https://joshblog.net/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/#comment-3823 Wed, 09 Feb 2011 16:27:10 +0000 http://www.zeuslabs.us/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/#comment-3823 […] http://joshblog.net/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/ […]

]]>
By: Felipe https://joshblog.net/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/#comment-1479 Thu, 29 Apr 2010 22:26:21 +0000 http://www.zeuslabs.us/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/#comment-1479 Thank you very much, you have created a wonderful tool!!

]]>
By: Josh Tynjala https://joshblog.net/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/#comment-1478 Fri, 23 Apr 2010 00:05:25 +0000 http://www.zeuslabs.us/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/#comment-1478 Felipe, try setting the selectedIndices property. Just pass an Array of int values corresponding to each of the items you want selected. For instance, if you want the first three items selected, you’d do this:

list.selectedIndices = [0, 1, 2];

If you want all the items selected, then you could use a for loop to go through each item in the data and add its index.

]]>
By: Felipe https://joshblog.net/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/#comment-1477 Thu, 22 Apr 2010 21:45:54 +0000 http://www.zeuslabs.us/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/#comment-1477 Hi everyone, i’m new in Flex and i need help urgently!!, how can i check all the checkboxes in the start of the program?… i tried by many days and i got any results. The listbox is fedeed by a httpresponse with the data, and works perfectly, but al the checkboxes are unchecked. PLEASE HELP!!!!! (and sorry the bad english)

]]>
By: Josh Tynjala https://joshblog.net/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/#comment-1476 Wed, 10 Mar 2010 17:15:49 +0000 http://www.zeuslabs.us/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/#comment-1476 Jeroen, I don’t really have time to support these components anymore. Best of luck finding the solution. Feel free to post it here if you figure something out.

]]>
By: Jeroen Beckers https://joshblog.net/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/#comment-1475 Wed, 10 Mar 2010 16:55:05 +0000 http://www.zeuslabs.us/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/#comment-1475 Great components. I have 1 problem/bug though. I’m using the CheckBoxList and I want all the items to be disabled if the first item is selected. The first item is a ‘use all’ option while the other rows are different sub options.
[]use all
[]book1
[]book2
[]book3

You get the picture… Now, I set all the enabled properties to false when the first item is selected and I set them to true when it’s unselected. After doing this, the selectedIndices no longer work. If I have 2 items selected and deselect the first, THAT items index is in the selectedIndices while the other (still selected) row isn’t.

Here’s some code:

var lst:List = e.currentTarget as List;
trace(lst.selectedIndices); //this one is correct !!

var dp:ArrayCollection = lst.dataProvider as ArrayCollection;
if(lst.selectedIndices.length > 0 && lst.selectedIndices[0] == 0)
{
	for(var i:int = 1; i< dp.length; i++)
	{
		dp.getItemAt(i).canSelect = false;
	}
}
else
{
	for(var j:int = 1; j< dp.length; j++)
	{
		dp.getItemAt(j).canSelect = true;
	}
}
dp.refresh();
trace(lst.selectedIndices);//but this one gives the wrong index.

Has to do with firstSelectionData in the ListBase class, but don't know why …

Please let me know if you have a solution or if you no longer feel like supporting these components.

Thanks!

]]>
By: Sheff88 https://joshblog.net/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/#comment-1474 Tue, 09 Feb 2010 13:53:59 +0000 http://www.zeuslabs.us/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/#comment-1474 Thank you for great work! Very useful CheckBoxList component

]]>
By: Aaron Hardy https://joshblog.net/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/#comment-1473 Tue, 19 Jan 2010 22:56:02 +0000 http://www.zeuslabs.us/2007/09/16/open-source-flex-components-advancedlist-and-checkboxlist/#comment-1473 You rock my sox. I used this in a combobox to disable items and it worked like a charm.

]]>