Manish What if I have two textboxes in the cellRenderer <HBox label="{weekHoursActual.text}"> <TextInput id="weekHoursActual" text="{...}" /> <TextInput id="weekHoursForecast" text="{...}" /> </HBox>
what will the editorProperty be? Also can you tell me how to get the rowIndex and columnIndex. My dataProvider to DataGrid is 2 Dimensional, one dimension represents the row and the other the columns so that any cell(i,j) value will be dataProvider[i][j]. So I need to know atleast columnIndex in Cellrenderer so that my value will in it will be dataObject.object[columnIndex].someValue. Thanks --- In flexcoders@yahoogroups.com, "Manish Jethani" <[EMAIL PROTECTED]> wrote: > > On 3/14/06, t_msreddy <[EMAIL PROTECTED]> wrote: > > I have the same problem. I need to know rowIndex and columnIndex to > > populate values in cellrenderer (Please see the code for both > > below). Also I get the error: > > ------------------ > > ReferenceError: Error #1069: Property text not found on WeekHoursCR > > and there > > is no default value > [snip] > > > ----------------- > > This is my Cellrenderer (WeekHourCR.mxml): > > ----------------- > > <?xml version="1.0" encoding="utf-8"?> > > <mx:HBox xmlns:mx="http://www.macromedia.com/2005/mxml" width="100%" > > height="100%" horizontalGap="0" verticalAlign="top" > > > <mx:TextInput id="weekHoursActual" width="40" height="20" > > textAlign="center" text="{(dataObject.employeeHours > > [0]).forecastHours}" /> > > <mx:TextInput id="weekHoursForecast" width="40" height="20" > > textAlign="center" text="{(dataObject.employeeHours > > [0]).actualHours}" /> > > </mx:HBox> > > ----------------- > > It's trying to access the non-existent `text` property on HBox. Add a > `text` property, or, faster, set `editorProperty` to "label" and bind > the HBox's label to the TextInput's text. > > <HBox label="{weekHoursActual.text}"> > <TextInput id="weekHoursActual" text="{...}" /> > ... > > Manish > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/