Subclassed DataGridColumn does not render in FB3 design view mode

View: New views
5 Messages — Rating Filter:   Alert me  

Subclassed DataGridColumn does not render in FB3 design view mode

by fourctv :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

[Flex 3.4]
I am subclassing DGC in a library of mine. Everything works perfectly, no problems in runtime.
 
But FB3 does not render my columns... If I have a mix of DGC and MyDGC on a DG, the framework's standard DGC render well, mine don't. If I have only MyDGC in a datagrid, it shows as an empty grid, as if no columns were declared. But again, it works fine in runtime.
 
Is there any trick, setting or property I need to set in my manifest.xml or design.xml?
 
I know that DGC rendering in FB3 is done differently than other components.
 
Is there a way to do what I want?
 
TIA
julio


Re: Subclassed DataGridColumn does not render in FB3 design view mode

by Amy-28 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



--- In flexcoders@..., "fourctv" <fourctv@...> wrote:

>
> [Flex 3.4]
> I am subclassing DGC in a library of mine. Everything works perfectly, no problems in runtime.
>  
> But FB3 does not render my columns... If I have a mix of DGC and MyDGC on a DG, the framework's standard DGC render well, mine don't. If I have only MyDGC in a datagrid, it shows as an empty grid, as if no columns were declared. But again, it works fine in runtime.
>  
> Is there any trick, setting or property I need to set in my manifest.xml or design.xml?
>  
> I know that DGC rendering in FB3 is done differently than other components.
>  
> Is there a way to do what I want?

You need to package it in a swc and program for the design time view.

HTH;

Amy


Re: Subclassed DataGridColumn does not render in FB3 design view mode

by fourctv :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Amy,

it is already in a swc library.

what do you mean by 'program for the design time view'?
all my DGC subclass does is add a couple extra properties. no changes or overrides of any sort.

tia
julio

--- In flexcoders@..., "droponrcll" <amyblankenship@...> wrote:

>
>
>
> --- In flexcoders@..., "fourctv" <fourctv@> wrote:
> >
> > [Flex 3.4]
> > I am subclassing DGC in a library of mine. Everything works perfectly, no problems in runtime.
> >  
> > But FB3 does not render my columns... If I have a mix of DGC and MyDGC on a DG, the framework's standard DGC render well, mine don't. If I have only MyDGC in a datagrid, it shows as an empty grid, as if no columns were declared. But again, it works fine in runtime.
> >  
> > Is there any trick, setting or property I need to set in my manifest.xml or design.xml?
> >  
> > I know that DGC rendering in FB3 is done differently than other components.
> >  
> > Is there a way to do what I want?
>
> You need to package it in a swc and program for the design time view.
>
> HTH;
>
> Amy
>



Re: Subclassed DataGridColumn does not render in FB3 design view mode

by Amy-28 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



--- In flexcoders@..., "fourctv" <fourctv@...> wrote:

>
> Amy,
>
> it is already in a swc library.
>
> what do you mean by 'program for the design time view'?
> all my DGC subclass does is add a couple extra properties. no changes or overrides of any sort.
>
> tia
> julio

http://blogs.digitalprimates.net/codeSlinger/index.cfm/2007/4/9/Ah-design-view
http://tv.adobe.com/watch/adc-presents/create-live-previews-for-custom-components-in-flex/

HTH;

Amy


Re: Subclassed DataGridColumn does not render in FB3 design view mode

by fourctv :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Amy,

But that did not help.
I already have all that in my library.
I have a bunch of components there and all render quite well in design mode.
The only one that does not is the DataGridColumn subclass.

As I mentioned before, all my subclass does is add a couple properties to DGC. Pretty basic, just some custom public properties, which are used by my DataGrid extension.

I even looked into the DG & DGC source code and found no reference/use of the design mode flag. DG or DGC does not do anything special while in design mode.

I believe that wireframe preview is rendered by FB3 itself, in DataGrid's case and maybe it does not recognize DGC from a different namespace, or something like that.

So far, that was the only component extension I made that has failed to render.

cheers,
julio
--- In flexcoders@..., "Amy" <amyblankenship@...> wrote:

>
>
>
> --- In flexcoders@..., "fourctv" <fourctv@> wrote:
> >
> > Amy,
> >
> > it is already in a swc library.
> >
> > what do you mean by 'program for the design time view'?
> > all my DGC subclass does is add a couple extra properties. no changes or overrides of any sort.
> >
> > tia
> > julio
>
> http://blogs.digitalprimates.net/codeSlinger/index.cfm/2007/4/9/Ah-design-view
> http://tv.adobe.com/watch/adc-presents/create-live-previews-for-custom-components-in-flex/
>
> HTH;
>
> Amy
>