flex - Using an inline item renderer to edit my DATAGRID -


good evening. have problem in datagrid itemeditor data grid component

<mx:datagrid id="lessonplandatagrid" x="10" y="10" dataprovider="{studentlessonplanarray}" height="271" width="270" editable="true">  <mx:columns>     <mx:datagridcolumn headertext="activity name" datafield="activityname" textalign="center"/>      <mx:datagridcolumn headertext="duration(minutes)" datafield="time" textalign="center" editable="true"> <mx:itemeditor> <fx:component>               <mx:numericstepper stepsize="1" maximum="20"/>  </fx:component>  </mx:itemeditor>      </mx:datagridcolumn>  </mx:columns>  </mx:datagrid> 

whenever change value gives me error

error #1069: property text not found on forms.lessonplaninnerclass0 , there no default value.     @ mx.controls::datagrid/itemeditoritemeditendhandler()[e:\dev\4.0.0\frameworks\projects\framework\src\mx\controls\datagrid.as:5296]     @ flash.events::eventdispatcher/dispatcheventfunction() 

the array studentlessonplanarray bindable array

please me

try setting editordatafield 'value' on datagridcolumn custom itemeditor. property tells flex property contains value should applied when editing ends. default item editor textinput, , default value editordatafield 'text'


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -