Hola veran pude resolver esto de una manera que no muy me gusto, pero funciona.
Aca va el codigo unicamente para los dos primeros dias Lunes (L) y Martes(M)
Código:
<mx:DataGridColumn headerText="L" dataField="@Lun" rendererIsEditor="true">
<mx:itemRenderer>
<mx:Component>
<mx:CheckBox creationComplete="init()">
<mx:Script>
<![CDATA[
private var _data:Object;
private function init():void
{
this.addEventListener(MouseEvent.CLICK, update);
}
[Bindable]
override public function get data():Object
{
return _data;
}
override public function set data(o:Object):void
{
_data = o;
if(o.@Lun == "true")
this.selected = true;
else
this.selected = false;
}
private function update(event:MouseEvent):void
{
if(this.selected)
_data.checked = "true";
else
_data.checked = "false";
}
]]>
</mx:Script>
</mx:CheckBox>
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
<mx:DataGridColumn headerText="M" dataField="@Mar" rendererIsEditor="true">
<mx:itemRenderer>
<mx:Component>
<mx:CheckBox creationComplete="init()">
<mx:Script>
<![CDATA[
private var _data:Object;
private function init():void
{
this.addEventListener(MouseEvent.CLICK, update);
}
[Bindable]
override public function get data():Object
{
return _data;
}
override public function set data(o:Object):void
{
_data = o;
if(o.@Mar == "true")
this.selected = true;
else
this.selected = false;
}
private function update(event:MouseEvent):void
{
if(this.selected)
_data.checked = "true";
else
_data.checked = "false";
}
]]>
</mx:Script>
</mx:CheckBox>
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
Si alguien sabe alguna manera mucho mas optima, por favor que sea tan amable de indicarla