You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2020/11/16 19:38:35 UTC

[GitHub] [royale-asjs] paul-uulabs opened a new issue #936: Dynamic Datagrid Columns

paul-uulabs opened a new issue #936:
URL: https://github.com/apache/royale-asjs/issues/936


   Looking at the Tour de Jewel "Column Swapping" example, the DataGrid toggles columns by splicing DataGridColumns initially instantiated in the markup. 
   
   Based on this, I've tried to implement dynamic DataGrid columns by creating an array of DataGridColumns objects programmatically and then assigning an array of them to Datagrid.columns ... The columns, unfortunately, do not update and I wonder if I am missing something (is there some Bead I need to add)... or is this currently not possible? The DataGrid data provider updates, but only my dummy column remains...
   
   ```
   <j:DataGrid id="ListTable">
                   <j:beads>
                       <j:RemoveAllDataGridItemRendererForArrayListData/>
                       <j:DataGridColumnLabelsChange/>
                       <js:ConstantBinding
   									sourceID="tablesModel"
   									sourcePropertyName="tableData"
   									destinationPropertyName="dataProvider"/>
                   </j:beads>
                   <j:columns dragEnabled="true" allowMultipleSelection="true">
                        <!-- I included 1 dummy column initially, but this will be replaced with dynamically generated colums-->
                        <j:DataGridColumn label="Dummy" dataField="dummy"  />
                   </j:columns>
   </j:DataGrid>
   
   ... 
   // The following attempts to update the Datagrid columns, but doesn't work...
   // However, if I log ListTable.columns I see the change, the Datagrid itself just doesn't seem to update the 
   // columns even after I have successfully refreshed the dataprovider..?
   var col = new DataGridColumn();
   col.label = "New";
   col.dataField = "new";
   var columnData = [];
   columnData.push(col); 
   ListTable.columns = columnData;
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] carlosrovira commented on issue #936: Dynamic Datagrid Columns

Posted by GitBox <gi...@apache.org>.
carlosrovira commented on issue #936:
URL: https://github.com/apache/royale-asjs/issues/936#issuecomment-729573506


   Hi Paul,
   
   links are up again and you can download latest nigthly build. There was an issue with the MS Azure server.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] carlosrovira commented on issue #936: Dynamic Datagrid Columns

Posted by GitBox <gi...@apache.org>.
carlosrovira commented on issue #936:
URL: https://github.com/apache/royale-asjs/issues/936#issuecomment-728934190


   Hi Paul, just saw few mins ago that the CI server is down. Don't know what's happening, but that's the only one. Hope it will be only soon. The only other way is to build repos yourself from the sources. Sorry for the inconvenience


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] paul-uulabs commented on issue #936: Dynamic Datagrid Columns

Posted by GitBox <gi...@apache.org>.
paul-uulabs commented on issue #936:
URL: https://github.com/apache/royale-asjs/issues/936#issuecomment-728367096


   Looks like this *might've* been fixed 2 days ago ..? The nightly build link is broken on the "get involved" page. Is there an active link so I can test this?
   
   https://github.com/apache/royale-asjs/commit/0bab5bbc326520a618aecc35a022fb24a60a6635
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org