Jewel dynamic DataGrid columns

2020-07-20 Thread Piotr Zarzycki
Hi Guys, I have requirements to have DataGrid where I'm adding/removing columns dynamically. I'm basically going trough the code and trying to figure out how everything works and how to approach that problem. I see that Jewel DataGrid is using class called DataGridButtonBar - It seems to me that

Re: Jewel dynamic DataGrid columns

2020-07-20 Thread Carlos Rovira
Hi Piotr, the main point in Datagrid for columns in "columns", but is an Array (maybe we could consider to change it to ArrayList?) In the current implementation, you need to change all the array, and should throw away what you have and create a fresh instances of all new columns and add dataprov

Re: Jewel dynamic DataGrid columns

2020-07-20 Thread Greg Dove
As discussed with you directly Carlos, I personally don't think it needs to be ArrayList. Usually changing things at this level (swapping 'columns') is rare, but it should be supported. Flex uses Array here too, and I am guessing similar considerations were used in the api design for the Flex DataG

Re: Jewel dynamic DataGrid columns

2020-07-21 Thread Carlos Rovira
Hi Greg, thanks for the detailed response. I think you're right, When I started working on Jewel DG I was wondering about columns designed as Array instead of ArrayList, since the latter provides better manipulation of items. But I think is ok to handle that way and take into account that it requi