[flexcoders] Re: DataGrid cell problem overriding setFocusedCell() method

2005-05-10 Thread bhaq1972
Thanks Jim ! you did it again (solved my problem). [i'm in the uk so you'll probably get my responses a day later] To give you a brief idea of what i'm doing. My boss wanted a universal cellrenderer which gives a differnt cellEditor control depending on the type of data the DatagridColumn is

Re: [flexcoders] Re: DataGrid cell problem overriding setFocusedCell() method

2005-05-10 Thread Jim Laing
I think I get it, and that seems like a good approach. Our approach is a little different, but they definitely overlap in what they accomplish: On 5/10/05, bhaq1972 [EMAIL PROTECTED] wrote: I had a universal cellrenderer based on Ali's combobox cellrenderer with more controls but it was so

[flexcoders] Re: DataGrid cell problem overriding setFocusedCell() method

2005-05-10 Thread bhaq1972
Sure no problem, the easiest thing to do is replace the 2 lines i posted in my first post ie var dp = [s1, s2, s3, s4]; cellEditor = listContent.createClassObject (mx.controls.ComboBox, editorName, EDITORDEPTH, {styleName:col, listOwner:this, dataProvider:dp, editable:true}); with the following