7 Replies Latest reply on Aug 4, 2010 10:02 PM by Flex harUI

    Error 1069 "Property text not found on mx.controls.CheckBox"

    olegkon Level 1

      Hi,

       

      I am trying to create a screen with Master DataGrid (connected to DB) and Detail DataForm.

      One of the columns is a Boolean (BIT in SQL Server 2005).

       

      So DataGrid is to select a row, and users can edit fields in Details form.

       

      When I click to check or uncheck that checkbox it does produce result, but getting exception:

      ReferenceError: Error #1069: Property text not found on mx.controls.CheckBox and there is no default value.

       

      Here is my code exerpt:

      <mx:DataGrid change="{formData = dg.selectedItem}" id="dg" dataProvider="{collection}" editable="false"  >

      <mx:columns> ....

      <mx:DataGridColumn dataField="suspend_job" headerText="Suspend" itemRenderer="mx.controls.CheckBox"

      rendererIsEditor="true" editorDataField="selected" />

      </mx:columns>

      </mx:DataGrid>

       

      DataForm:

      <mx:DataForm dataProvider="{formData}"> ...

      <mx:Label text="Suspend Job:" />

      <mx:DataFormItem dataField="suspend_job" label="" x="160" y="360" width="90">

      <mx:CheckBox id="suspend" selected="{formData.suspend_job}" click="formData.suspend_job =! formData.suspend_job" />

      </mx:DataFormItem>

      </mx:Canvas>

      </mx:DataForm>

       

      Am I doing something wrong here ?

       

      Code is in Flex3, but working with FB4.

       

      Please help !

       

      TIA,

      Oleg.