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 2022/03/29 00:57:20 UTC

[GitHub] [royale-asjs] SolidSoft-Lda opened a new issue #1186: Data binding does not work for direct class

SolidSoft-Lda opened a new issue #1186:
URL: https://github.com/apache/royale-asjs/issues/1186


   1. ContainerDataBinding mxml
   
   2.
   <dg:DataGrid localId="grid" dataProvider="{data}">
       <dg:beads>
           <beads:DataGridOptions modelType="{TestGridModel}"/>
       </dg:beads>
   
   3. The DataGridOptions bead it's a bead to dynamically add buttons to the Jewel DataGrid
   
   4. Result: Data binding is not working.
   
   Workaround (tested):
   
   1.
   public class TestConfig {
       public static const gridModel:Class = TestGridModel;
   }
   
   2.
   <beads:DataGridOptions modelType="{TestConfig.gridModel}"/>
   
   3. Result: Data binding works.


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@royale.apache.org

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



[GitHub] [royale-asjs] SolidSoft-Lda commented on issue #1186: Data binding does not work for direct class

Posted by GitBox <gi...@apache.org>.
SolidSoft-Lda commented on issue #1186:
URL: https://github.com/apache/royale-asjs/issues/1186#issuecomment-1086601755


   I accidentally discover that adding a local id value the issue does not happen.
   Ex: <beads:DataGridOptions localId="options1" modelType="{TestConfig.gridModel}"/>
   
   This also happens with other components as Jewel DataGrid.
   The dataProvider binding only works when I set a localId to the DataGrid.


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@royale.apache.org

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