are the same object, but in this instance, I am using Text for the
renderer and TextInput for the editor.
As mentioned before, these are not what I am really trying to set for
editor/renderer, but just set to there to simplify the problem as that
is the exact same error. So if we can figure out what the problem is
in this example, I should be able to translate that to my specific
custom renderer/editors.
But just to give it a shot, I tried with the imports (per Matt's idea)
with no luck, and I tried with the rendererIsEditor which made the
column uneditable (because I am not using TextInput).
>From the documentation, it looks like if rendererIsEditor is set, then
the itemEditor is ignored.
Any more ideas?
--- In [email protected], "Harish Sivaramakrishnan"
<[EMAIL PROTECTED]> wrote:
>
> you need to set rendererIsEditor=true in the code, the RTE will be
gone.
>
> Thanks
> Harish
>
> On 4/28/06, Matt Chotin <[EMAIL PROTECTED]> wrote:
> >
> > Random shot, try importing mx.controls.Text and
mx.controls.TextInput? I
> > think it should have been a compiler error if it was necessary but
> >
> >
> >
> > Note that the error is for the item editor when you say it's the
renderer
> > that you change to fix it. Sounds like a bug to me I'll forward it
> > inside.
> >
> >
> >
> > Matt
> >
> >
> > ------------------------------
> >
> > *From:* [email protected]
[mailto:[EMAIL PROTECTED] *On
> > Behalf Of *Scott Romer
> > *Sent:* Thursday, April 27, 2006 2:41 PM
> > *To:* [email protected]
> > *Subject:* [flexcoders] Null error when using specifying
itemRenderer on
> > dataGridColumn
> >
> >
> >
> > I've been struggling for some time now (and I'm assuming this must
just be
> > so brain-dead simple)...
> > Trying to set an ItemRenderer and ItemEditor on a datagridColumn. For
> > certain ItemRenderer's, I am getting a null error. (using Flex 2
beta 2)
> >
> > NOTE: I am not trying to use these as my actual renderer and editor
> > classes as they don't really provide anything at all above the
defaults..
> > but I noticed this gives the EXACT same error. (My actual
renderer extends
> > from Canvas...)
> >
> > If you change the itemRenderer to mx.controls.Label, then it works
fine..
> > and oddly enough Text extends Label. Any ideas?
> >
> >
> >
> > <?xml version="1.0" encoding="utf-8"?>
> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
> > backgroundAlpha="0" creationComplete="initApp()">
> >
> > <mx:Script>
> > <![CDATA[
> > &! nbsp; import mx.collections.ArrayCollection;
> >
> >
> > [Bindable]
> > public var dataProvider:ArrayCollection;
> >
> > private function initApp():void
> > {
> > dataProvider = new ArrayCollection([
> > {name: "John Smith", dept: "Engineering"},
> > {name: "Jane Doe", dept: "Marketing"},
> > ! {name: "Lisa Brown", dept: "Sales"},
> > &nbs! p; {name: "Robert Wong", dept:
> > "Engineering"},
> >
> > {name: "Amy Taylor", dept: "Finance"},
> > ]);
> > }
> >
> > ]]>
> > </mx:Script>
> >
> > <mx:DataGrid id="myDatagrid" dataProvider="{dataProvider}"
> > variableRowHeight="true" editable="true" rowHeight="50"
> > width="300" height="300">
> > <mx:columns>
> > <mx:DataGridColumn dataField="name"/>
> > &! nbsp; <mx:DataGridColumn dataField="dept" editable="true"
> >
> > *itemRenderer="mx.controls.Text"* editorDataField="text"
> > itemEditor="mx.controls.TextInput">
> > </mx:DataGridColumn>
> > </mx:columns>
> > </mx:DataGrid>
> >
> > </mx:Application>
> >
> >
> >
> >
> > Null error received when trying to edit the dept column:
> > TypeError: Error #1009: null has no properties.
> > at mx.controls::DataGrid/createItemEditor()
> > at mx.controls::DataGrid/itemEditorItemEditBeginHandler()
> > at flash.events::EventDispatcher/dispatchEvent()
> > at mx.controls::DataGrid/commitEditedItemPosition()
> > at mx.controls::DataGrid/mx.controls:DataGrid::updateDisplayList()
> > at ! mx.core::UIComponent/validateDisplayList()
> > &nbs! p; at mx .managers::LayoutManager/validateDisplayList()
> >
> > at mx.managers::LayoutManager/::doPhasedInstantiation()
> > at mx.core::UIComponent/::callLaterDispatcher2()
> > at mx.core::UIComponent/::callLaterDispatcher()
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> >
> >
> >
> > SPONSORED LINKS
> > Web site design
development<http://groups.yahoo.com/gads?t=ms&k=Web+site+design+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ>
Computer
> > software
development<http://groups.yahoo.com/gads?t=ms&k=Computer+software+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw>
Software
> > design and
development<http://groups.yahoo.com/gads?t=ms&k=Software+design+and+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ>
Macromedia
> >
flex<http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=OO6nPIrz7_EpZI36cYzBjw>
Software
> > development best
practice<http://groups.yahoo.com/gads?t=ms&k=Software+development+best+practice&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=f89quyyulIDsnABLD6IXIw>
> > ------------------------------
> > YAHOO! GROUPS LINKS
> >
> >
> > - Visit your group
"flexcoders<http://groups.yahoo.com/group/flexcoders>"
> > on the web.
> >
> > - To unsubscribe from this group, send an email to:
> >
[EMAIL PROTECTED]<[EMAIL PROTECTED]>
> >
> > - Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> > Service <http://docs.yahoo.com/info/terms/>.
> >
> >
> > ------------------------------
> >
> >
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

