Hi All,
Can anyone say me why this error occurs?
I hava a repeater structure with a checkbox and some textfields
column.
when the user clicks the(select All) header checkbox, all
checkboxex should be checked.
In the click event of that checkbox,i have implemented the
following code.
But its throwing the above mentioned error.
And the system is blocked thereafter.
How to resolve this?
//i m calling the following function on the select event of that
checkbox.
if(selectAllChkBox.selected==true)
{
for(var count:int=0;count<deptControlArray.length;count++)
{
var tempObj:Object=new Object();
tempObj.Empid=StringUtil.trim(empidTxt[count].text);
tempObj.ApproverName=StringUtil.trim(appNameTxt[count].text);
tempObj.RcodeIncluded=StringUtil.trim(rcodeTxt[count].text)
tempObj.Selection=true;
deptControlArray.addItem(tempObj)
}
deptControlArray.refresh();
delBtn.enabled=true;
}
else
{
for(var count:int=0;count<deptControlArray.length;count++)
{
var tempObj:Object=new Object();
tempObj.Empid=StringUtil.trim(empidTxt[count].text);
tempObj.ApproverName=StringUtil.trim(appNameTxt[count].text);
tempObj.RcodeIncluded=StringUtil.trim(rcodeTxt[count].text)
tempObj.Selection=false;
deptControlArray.addItem(tempObj)
}
deptControlArray.refresh();
delBtn.enabled=false;
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---