Data model is changed, save is triggered.

On Wed, Jul 17, 2013 at 12:53 PM, JP Bader <[email protected]> wrote:

> Why not just add an empty record into your dg?  If you need it above and/or
> below existing records, wouldn't a psuedo record, or an empty virtual
> object be enough for the dg to create the row, but display nothing?
>
>
> On Wed, Jul 17, 2013 at 12:24 PM, mark goldin <[email protected]>
> wrote:
>
> > I need that row(s) to appear anywhere in the datagrid. I will definitely
> > look into your example, but I tried running it in FB 4.7 and did not
> work.I
> > am getting this:
> > undefined
> > at
> >
> >
> mx.styles::StyleProtoChain$/getStyleManager()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\styles\StyleProtoChain.as:972]
> > at
> >
> >
> mx.styles::StyleProtoChain$/matchesCSSType()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\styles\StyleProtoChain.as:781]
> > at
> >
> >
> mx.core::UIComponent/matchesCSSType()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:10891]
> > at
> >
> >
> mx.styles::CSSSelector/matchesStyleClient()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\styles\CSSSelector.as:242]
> > at
> >
> >
> mx.styles::CSSStyleDeclaration/matchesStyleClient()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\styles\CSSStyleDeclaration.as:502]
> > at
> >
> >
> mx.styles::StyleProtoChain$/matchStyleDeclarations()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\styles\StyleProtoChain.as:916]
> > at
> >
> >
> mx.styles::StyleProtoChain$/getClassStyleDeclarations()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\styles\StyleProtoChain.as:114]
> > at
> >
> >
> mx.core::UIComponent/getClassStyleDeclarations()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:10923]
> > at
> >
> >
> mx.styles::StyleProtoChain$/initProtoChainForUIComponentStyleName()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\styles\StyleProtoChain.as:371]
> > at
> >
> >
> mx.styles::StyleProtoChain$/initProtoChain()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\styles\StyleProtoChain.as:171]
> > at mx.core::UIComponent/
> > http://www.adobe.com/2006/flex/mx/internal::initProtoChain()[E
> >
> :\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:10902]
> > at
> >
> >
> mx.core::UIComponent/regenerateStyleCache()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:10965]
> > at
> >
> >
> mx.core::Container/regenerateStyleCache()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\core\Container.as:3760]
> > at
> >
> >
> mx.styles::StyleProtoChain$/setStyle()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\styles\StyleProtoChain.as:700]
> > at
> >
> >
> mx.core::UIComponent/setStyle()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:11130]
> > at
> >
> >
> mx.core::Container/addEventListener()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\core\Container.as:2412]
> > at
> >
> >
> mx.managers::FocusManager/activate()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\FocusManager.as:846]
> > at
> >
> >
> mx.core::Application/initManagers()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\core\Application.as:1386]
> > at
> >
> >
> mx.core::Application/initialize()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\core\Application.as:1019]
> > at DataGridFooter/initialize()
> > at mx.core::UIComponent/
> > http://www.adobe.com/2006/flex/mx/internal::childAdded()[E
> >
> :\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7485]
> > at
> >
> >
> mx.core::UIComponent/addChild()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7166]
> > at
> >
> >
> FooterDataGrid/createChildren()[C:\Phoenix_source\flexUI\DataGridFooter\src\FooterDataGrid.as:29]
> > at
> >
> >
> mx.core::UIComponent/initialize()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7624]
> > at mx.core::UIComponent/
> > http://www.adobe.com/2006/flex/mx/internal::childAdded()[E
> >
> :\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7485]
> > at mx.core::Container/
> > http://www.adobe.com/2006/flex/mx/internal::childAdded()[E
> > :\dev\4.5.1\frameworks\projects\mx\src\mx\core\Container.as:3974]
> > at
> >
> >
> mx.core::Container/addChildAt()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\core\Container.as:2618]
> > at
> >
> >
> mx.core::Application/addChildAt()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\core\Application.as:1330]
> > at
> >
> >
> mx.core::Container/addChild()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\core\Container.as:2534]
> > at
> >
> >
> mx.core::Container/createComponentFromDescriptor()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\core\Container.as:4396]
> > at
> >
> >
> mx.core::Container/createComponentsFromDescriptors()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\core\Container.as:4183]
> > at
> >
> >
> mx.core::Container/createChildren()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\core\Container.as:3189]
> > at
> >
> >
> mx.core::UIComponent/initialize()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7624]
> > at
> >
> >
> mx.core::Container/initialize()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\core\Container.as:3131]
> > at
> >
> >
> mx.core::Application/initialize()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\core\Application.as:1049]
> > at DataGridFooter/initialize()
> > at mx.core::UIComponent/
> > http://www.adobe.com/2006/flex/mx/internal::childAdded()[E
> >
> :\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7485]
> > at
> >
> >
> mx.core::UIComponent/addChild()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7166]
> > at
> >
> >
> FooterDataGrid/createChildren()[C:\Phoenix_source\flexUI\DataGridFooter\src\FooterDataGrid.as:29]
> > at
> >
> >
> mx.core::UIComponent/initialize()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7624]
> > at mx.core::UIComponent/
> > http://www.adobe.com/2006/flex/mx/internal::childAdded()[E
> >
> :\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7485]
> > at mx.core::Container/
> > http://www.adobe.com/2006/flex/mx/internal::childAdded()[E
> > :\dev\4.5.1\frameworks\projects\mx\src\mx\core\Container.as:3974]
> > at
> >
> >
> mx.core::Container/addChildAt()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\core\Container.as:2618]
> > at
> >
> >
> mx.core::Application/addChildAt()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\core\Application.as:1330]
> > at
> >
> >
> mx.core::Container/addChild()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\core\Container.as:2534]
> > at
> >
> >
> mx.core::Container/createComponentFromDescriptor()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\core\Container.as:4396]
> > at
> >
> >
> mx.core::Container/createComponentsFromDescriptors()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\core\Container.as:4183]
> > at
> >
> >
> mx.core::Container/createChildren()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\core\Container.as:3189]
> > at
> >
> >
> mx.core::UIComponent/initialize()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7624]
> > at
> >
> >
> mx.core::Container/initialize()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\core\Container.as:3131]
> > at
> >
> >
> mx.core::Application/initialize()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\core\Application.as:1049]
> > at DataGridFooter/initialize()
> > at mx.core::UIComponent/
> > http://www.adobe.com/2006/flex/mx/internal::childAdded()[E
> >
> :\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7485]
> > at
> >
> >
> mx.core::UIComponent/addChild()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7166]
> > at
> >
> >
> FooterDataGrid/createChildren()[C:\Phoenix_source\flexUI\DataGridFooter\src\FooterDataGrid.as:29]
> > at
> >
> >
> mx.core::UIComponent/initialize()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7624]
> > at mx.core::UIComponent/
> > http://www.adobe.com/2006/flex/mx/internal::childAdded()[E
> >
> :\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:7485]
> > at mx.core::Container/
> > http://www.adobe.com/2006/flex/mx/internal::childAdded()[E
> > :\dev\4.5.1\frameworks\projects\mx\src\mx\core\Container.as:3974]
> > at
> >
> >
> mx.core::Container/addChildAt()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\core\Container.as:2618]
> > at
> >
> >
> mx.core::Application/addChildAt()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\core\Application.as:1330]
> > at
> >
> >
> mx.core::Container/addChild()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\core\Container.as:2534]
> > at
> >
> >
> mx.core::Container/createComponentFromDescriptor()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\core\Container.as:4396]
> > at
> >
> >
> mx.core::Container/createComponentsFromDescriptors()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\core\Container.as:4183]
> > at
> >
> >
> mx.core::Container/createChildren()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\core\Container.as:3189]
> >
> > in StyleProtoChain.as:
> > private static function getStyleManager(object:Object):IStyleManager2
> >     {
> >         if (object is IFlexModule)
> >             return
> > StyleManager.getStyleManager(IFlexModule(object).moduleFactory); // Error
> > here
> >         else if (object is StyleProxy)
> >             return getStyleManagerFromStyleProxy(StyleProxy(object));
> >         else
> >             return StyleManager.getStyleManager(null);
> >     }
> >
> >
> >
> > On Wed, Jul 17, 2013 at 11:23 AM, Alex Harui <[email protected]> wrote:
> >
> > > On my blog I have an old example of wrapping an Ilist to insert rows in
> > > the front.  You might be able to modify that to add rows at the end.
> > >
> > >
> > > On 7/17/13 9:03 AM, "JP Bader" <[email protected]> wrote:
> > >
> > > >Will you ever know the row count?
> > > >
> > > >requestedMinRowCount for the minimum number of rows you might want
> (i.e.
> > > >1)?
> > > >
> > > >Otherwise, I'm not sure I understand your question.
> > > >
> > > >Or just explicitly state "rowCount = 0" (or -1).
> > > >
> > > >
> > > >On Wed, Jul 17, 2013 at 10:57 AM, mark goldin <[email protected]>
> > > >wrote:
> > > >
> > > >> Yes, exactly.
> > > >>
> > > >>
> > > >> On Wed, Jul 17, 2013 at 10:55 AM, JP Bader <[email protected]> wrote:
> > > >>
> > > >> > I'm not sure I understand the question.  Are you asking how to
> > display
> > > >> one
> > > >> > extra, empty row, irregardless of the array length of the
> > > >>dataProvider?
> > > >> >
> > > >> >
> > > >> > On Wed, Jul 17, 2013 at 10:53 AM, mark goldin <
> > [email protected]>
> > > >> > wrote:
> > > >> >
> > > >> > > My original question is wrong. It has to say is not a part of
> the
> > > >> > > dataProvider.
> > > >> > >
> > > >> > >
> > > >> > > On Wed, Jul 17, 2013 at 10:50 AM, JP Bader <[email protected]>
> wrote:
> > > >> > >
> > > >> > > > You want an empty row?
> > > >> > > >
> > > >> > > > rowCount = {dg.dataProvider.length + 1}
> > > >> > > >
> > > >> > > > That help?
> > > >> > > >
> > > >> > > >
> > > >> > > > On Wed, Jul 17, 2013 at 10:47 AM, mark goldin
> > > >><[email protected]
> > > >> >
> > > >> > > > wrote:
> > > >> > > >
> > > >> > > > > DataProvider is an ArrayCollection. I need an extra row for
> a
> > > >> > cosmetic
> > > >> > > > > purpose.
> > > >> > > > >
> > > >> > > > >
> > > >> > > > > On Wed, Jul 17, 2013 at 10:42 AM, JP Bader <[email protected]>
> > > >>wrote:
> > > >> > > > >
> > > >> > > > > > Can you be more clear about what you're trying to do?
>  What
> > > >>does
> > > >> > your
> > > >> > > > > > dataprovider object look like?
> > > >> > > > > >
> > > >> > > > > > Are you trying to show a row of cumulative information?
> >  This
> > > >> > > question
> > > >> > > > > > isn't that clear...
> > > >> > > > > >
> > > >> > > > > >
> > > >> > > > > > On Wed, Jul 17, 2013 at 10:28 AM, mark goldin <
> > > >> > [email protected]
> > > >> > > >
> > > >> > > > > > wrote:
> > > >> > > > > >
> > > >> > > > > > > I need to show a row in the grid that is a part of
> > > >> dataProvider.
> > > >> > Is
> > > >> > > > > > there a
> > > >> > > > > > > way of doing this?
> > > >> > > > > > >
> > > >> > > > > > > Thanks
> > > >> > > > > > >
> > > >> > > > > >
> > > >> > > > > >
> > > >> > > > > >
> > > >> > > > > > --
> > > >> > > > > > JP Bader
> > > >> > > > > > Principal
> > > >> > > > > > Zavteq, Inc.
> > > >> > > > > > @lordB8r | [email protected]
> > > >> > > > > > 608.692.2468
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > > >
> > > >> > > >
> > > >> > > > --
> > > >> > > > JP Bader
> > > >> > > > Principal
> > > >> > > > Zavteq, Inc.
> > > >> > > > @lordB8r | [email protected]
> > > >> > > > 608.692.2468
> > > >> > > >
> > > >> > >
> > > >> >
> > > >> >
> > > >> >
> > > >> > --
> > > >> > JP Bader
> > > >> > Principal
> > > >> > Zavteq, Inc.
> > > >> > @lordB8r | [email protected]
> > > >> > 608.692.2468
> > > >> >
> > > >>
> > > >
> > > >
> > > >
> > > >--
> > > >JP Bader
> > > >Principal
> > > >Zavteq, Inc.
> > > >@lordB8r | [email protected]
> > > >608.692.2468
> > >
> > >
> >
>
>
>
> --
> JP Bader
> Principal
> Zavteq, Inc.
> @lordB8r | [email protected]
> 608.692.2468
>

Reply via email to