there can be multiple view states inside the itemEditro/Renderer, so why not use a if else clause inside data() then switch to difference states ?

psudo code:

override public function data( o ){
    if(o.editor == "richText"){
       currentState = "richTextEditor";
    else{
       currentState = "defaultButton";
    }
}



On 6/5/06, Graham Weldon <[EMAIL PROTECTED]> wrote:
Hi all,

Just wondering if anyone has managed to create a unique or different
itemEditor in a Datagrid based on the row its in?
More specifically, I would like to choose the itemEditor based on some
of the model XML:

    <element name="Hello" id="12" editor="richText"/>

In this sample, the itemEditor would show a button "edit" that would
launch a rich text editor, but the next row might be a simple text input.
Any suggestions would be helpful.

Regards,
Graham Weldon



------------------------ Yahoo! Groups Sponsor --------------------~-->
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~->

--
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/







--
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




Reply via email to