I've a Tree with checkbox with dataprovider as an xmlList. Now I need to get the item renderer of the list item without click on item and by search the from outside.
protected function btnSearch_clickHandler():void
{
var searchString:String = txtInputSearch.text;
if(searchString != "")
{
StyleItemsArray.removeAll();
var conaintList:XMLList = (treeSource.node.(@label.search(searchString) > -1) as XMLList);
for each(var xmlItem:XML in conaintList)
{
// trigger the checkbox click event here
}
}
}
Sorry for delayed: I tried the solution given but it seems datagroup is used in Flex 4 but I'm still in flex 3 version. I tried couple of other way (e.g. itemToItemRenderer())but no luck. Could someone please help me out?