mjesteve commented on issue #1111: URL: https://github.com/apache/royale-asjs/issues/1111#issuecomment-2081106346
Hi Nisaba, The problem was that "Load Data" assigned an ArrayList to the dataProvider and requires an ArrayListView (to allow sorting) I have modified the repository but I don't know when the TDJ build will be available. For now I show you the result: ![GIF 27-04-2024 19-17-50](https://github.com/apache/royale-asjs/assets/55754195/9cd8cfee-8c3e-429b-b117-53275a6fde2f) And the modification I have made: ``` private function loadDataProvider(datagrid:DataGrid):void { var arl:ArrayList = new ArrayList([ new Product("rz302","New",80,105,"assets/smallyellowrect.jpg"), new Product("dh442","Records",10,340,"assets/smallredrect.jpg"), new Product("ps222","to show!",35,190,"assets/smallorangerect.jpg"), new Product("ps102",":-)",44,200,"assets/smallbluerect.jpg"), ]); if(datagrid == dg2) datagrid.dataProvider = new ArrayListView(arl); else datagrid.dataProvider = arl; } ``` -- 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-unsubscr...@royale.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org