Moving topic to "users" list. Oleg, you will get a better response in this forum for questions like these. Please make sure you are subscribed to us...@flex.apache.org to see further responses. You could do so by sending an email to users-subscr...@flex.apache.org.
Thanks, Om On Wed, Jul 24, 2013 at 9:12 PM, Oleg Konovalov <oleg...@gmail.com> wrote: > Hi, > > I am building a screen with one Static DataGrid and one Dynamic (data comes > through SOAP > and I do not know the number of columns or their names in advance). > I also get a list of column names in order from another SOAP call. > > That Dynamic DataGrid works (converting data from Vector of Objects to > ArrayList of Columns). > > I still have a few problems: > > > 1) I need to implement "Clear" of that Dynamic table. > > No matter what I tried: > > arrayColl=null; > > arrayColl.removeAll(); > > arrayColl = new ArrayCollection(); > > myDG.dataProvider=null; > > myDG.dataProvider=new ArrayCollection(); > > I am getting NULL reference exception coming from some system code: if > (cell.visible)... where cell is null. > > How can I clear that dynamic DG ? > > > > full exception stack: > > TypeError: Error #1009: Cannot access a property or method of a null object > reference. > at spark.components.gridClasses::GridLayout/updateTypicalCellSizes() > at spark.components.gridClasses::GridLayout/measure() > at spark.components.supportClasses::GroupBase/measure() > at mx.core::UIComponent/measureSizes() > at mx.core::UIComponent/validateSize() > at spark.components::Group/validateSize() > at mx.managers::LayoutManager/validateSize() > at mx.managers::LayoutManager/doPhasedInstantiation() > at mx.managers::LayoutManager/doPhasedInstantiationCallback() > > > > > > > > > > > > > > > > > > > > > > > 2) It seems that by default that Dynamic DG puts columns in alphabetical > > order, which is of course not what I need. > > Any way to disable that or fix somehow? > > > > > 3) I need to show 2 DGs on the screen, and the second of them is Dynamic, > > and allow user to resize them vertically to be able to see more in static > or dynamic DG. > > I put them in VDividedBox (and set height of both DG and container to > 100%). > > It split the screen vertically 50:50, but still there is no draggable in > between, > > so can't resize. > > > > Any help is very appreciated. > > > > > TIA, > > Oleg. >