Re: [Royale] ICollectionView

2018-01-22 Thread Peter Ent
Can you provide an MXML sample that reproduces the problem? I am also going to try to figure out what conditions would cause this to happen. Thank you for your patience. ‹peter On 1/22/18, 4:57 AM, "piotrz" wrote: >Peter I decided show you some screenshots. This is dg and

Re: [Royale] ICollectionView

2018-01-22 Thread piotrz
Peter I decided show you some screenshots. This is dg and HTML structure. Height of area which displays data in grid is 0. In Chrome I have unselect height and grid shows up, but it doesn't look as it was before.

Re: [Royale] ICollectionView

2018-01-22 Thread Piotr Zarzycki
Peter, I was talking about DataGrid from Basic. Now I'm building example using Basic only components. I didn't have time to check whether adding to DataGridExample panel there will be the same issue. MDL Table is separate component based on List. Thanks, Piotr 2018-01-22 3:21 GMT+01:00 Peter

Re: [Royale] ICollectionView

2018-01-21 Thread Peter Ent
Does the DataGridExample work for you? I didn’t realize (for some reason) that the MDL grid was based on DataGrid; I thought it was written from scratch and independent. The container height should not be zero since it is explicitly calculated in DataGridLayout. I’ll take a look tomorrow my

Re: [Royale] ICollectionView

2018-01-21 Thread Piotr Zarzycki
Hi Peter, I just tried your changes - not sure if it's finished. Currently in my case only Header is visible. The "DataGrid_ListArea Container" have height = 0; The only difference between me and MDLExample is that: 1) I don't have line-height setup for each item renderer. Setting line-height

Re: [Royale] ICollectionView

2018-01-20 Thread Peter Ent
Hi, My main reason for moving the layout code to layout beads with more control is to allow the insertion of drawing overlays: Base component (eg, ) — ButtonBar header — Container (list area) If you wanted to draw better grid lines, then inserting a drawing layer of some type between the

Re: [Royale] ICollectionView

2018-01-19 Thread Piotr Zarzycki
Well, I'm afraid a bit that custom layout will be liable to some external containers and this cause unpredictable visual issues. Flex box layouts just works, really good. Our flex box layout is doing also something with the children if remember correctly? I know that there is possible to do not

Re: [Royale] ICollectionView

2018-01-19 Thread Peter Ent
There's going to be one more change: I'm going to bring back DataGridLayout and DataGridPercentageLayout, moving the layout code from the View beads into layout beads. This has a couple of benefits: First, it separates the layout of the sub-parts from the creation of those parts. Second, while I

Re: [Royale] ICollectionView

2018-01-19 Thread Peter Ent
Hi Piotr, I was having an issue with the appearance of Scrollbars (in FlashPlayer, not HTML) in DataGrid. I finally tracked it down to the HorizontalFlexLayout that is used for the Container holding the columns. When I switch it to HorizontalLayout the scrollbars appear. It looks like

Re: [Royale] ICollectionView

2018-01-16 Thread Peter Ent
Now that I've checked in TreeGrid and my changes to DataGrid (not much) I can look into this with you. I created an interface, IDataGridColumn so that TreeGrid and DataGrid can share a lot of the same code, although the two are separate at the moment. I want TreeGrid to be able to use most of the

Re: [Royale] ICollectionView

2018-01-16 Thread Peter Ent
Sorry for the delay; yesterday was a company holiday here in the States. I was catching up on other things. I figured this would come up; we need to have a plan for style names that is consistent. What we have now isn't working right all the time. I was trying to give the columns additional class

Re: [Royale] ICollectionView

2018-01-12 Thread piotrz
Peter, I see one more issue. In DataGridColumnList we have following line: "typeNames = "DataGridColumnList";". After compilation each div which represents DataGridColumnList have class="List".

Re: [Royale] ICollectionView

2018-01-12 Thread Piotr Zarzycki
Peter, I have pushed changes. DataGridPercentageView has been cleaned up nicely. I end up with one method only there. It should be used through the css: .MyGridStyle { IBeadView: ClassReference("org.apache.royale.html.beads.DataGridPercentageView"); } I have update also DataGridExample.

Re: [Royale] ICollectionView

2018-01-11 Thread Piotr Zarzycki
Peter, I did analysis of DataGridPercentageView and the only difference between DataGridView is one line of code. I would go and extend DataGridView. What do you think ? This bead is really useful to me and it's working, but it need to be cleaned up. If I extend it I will simply fix issue above.

Re: [Royale] ICollectionView

2018-01-11 Thread Piotr Zarzycki
Peter, I have found what's the problem is!! I'm using in my DataGrid bead DataGridPercentageView. This bead messing up with styles, basically overwrite them. Not sure actually what happened yet inside. If I remove it css class which provides your bead to the DataGrid is starting to be assign

Re: [Royale] ICollectionView

2018-01-11 Thread Piotr Zarzycki
Hi Peter, Yest DataGridExample is working for me. The second grid is responding for add/remove item. I'm going to add to the DataGridExample today/tomorrow Panel as I have and see whether style will be applied. My styles are in separate files style.css. DataGridExample has them inside MXML.

Re: [Royale] ICollectionView

2018-01-10 Thread piotrz
Hi Peter, I just started to use your classes on DataGrid and in my examples they are not working. Something is wrong with assigning CSS style to DataGridColumn. I have following structure [1] and CSS. This css is in separate file. In the main applications file I have simply: After compilation

Re: [Royale] ICollectionView

2018-01-08 Thread Piotr Zarzycki
Hi Peter, Thank you very much. It will definitely help me finish another Big example! I will check it tomorrow :) Piotr 2018-01-08 20:29 GMT+01:00 Peter Ent : > I just pushed some changes that give you a more dynamic DataGrid. > > The DataGrid should continue to work

Re: [Royale] ICollectionView

2018-01-08 Thread Peter Ent
I just pushed some changes that give you a more dynamic DataGrid. The DataGrid should continue to work normally. But if you want to have it respond to items being inserted and removed, then you can use the new collection view beads. I updated DataGridExample to illustrate how to do it PAYG. You

Re: [Royale] ICollectionView

2018-01-07 Thread Peter Ent
The DataGrid’s model’s dataProvider would be an ICollectionView which gets shared with each column list’s model’s dataProvider. Changing the data should trigger events to have each list’s DataItemRendereFactoryForCollectionView update the itemRenderers. It should just work but I will be

Re: [Royale] ICollectionView

2018-01-07 Thread Piotr Zarzycki
Peter, When you were saying that :"I had a reasonably working version of DataGrid for this..." - Do you mean usage of all that new stuff which helps sorting etc ? I'm working on the next example where DataGrid is being used. I would like to have also ability to update like we are doing that in

Re: [Royale] ICollectionView

2018-01-07 Thread Piotr Zarzycki
Many Thanks! I just noticed that Grid doesn't have selectedItem property. Not sure if it was for purpose. Piotr 2018-01-07 14:21 GMT+01:00 Peter Ent : > I did notice that something was happening with the scrollbars. I will look > into it. > ‹peter > > On 1/6/18, 8:52

Re: [Royale] ICollectionView

2018-01-07 Thread Peter Ent
I did notice that something was happening with the scrollbars. I will look into it. ‹peter On 1/6/18, 8:52 AM, "piotrz" wrote: >Hi Peter, > >Just wanted to let you know that I have started use more extensively >DataGrid and I have found that using FlexLayout gives a way

Re: [Royale] ICollectionView

2018-01-06 Thread piotrz
Hi Peter, Just wanted to let you know that I have started use more extensively DataGrid and I have found that using FlexLayout gives a way better results for DataGrid than VerticalFlexLayout/HorizotnalFlexLayout beads. Ma last commit fixes issue with synchronizing width of column with width of

[Royale] ICollectionView

2018-01-05 Thread Peter Ent
Hi, I've pushed a change to the develop branch that should make it easier to deal with dynamic data sets. The heart of this is ICollectionView, in the Collections project. This interface describes a class that allows items to be added, removed, and updated dynamically but can also front a more