This is an automated email from the ASF dual-hosted git repository.
hiedra pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new 59f7bb29f1 Fix error in TDJ. Sorting stopped working when "Load Data"
on the DataGrid control's examples page.
59f7bb29f1 is described below
commit 59f7bb29f1883fa6d6693659ff52422c299de7cf
Author: hiedra <[email protected]>
AuthorDate: Sat Apr 27 19:28:07 2024 +0200
Fix error in TDJ. Sorting stopped working when "Load Data" on the DataGrid
control's examples page.
---
examples/jewel/TourDeJewel/src/main/royale/DataGridPlayGround.mxml | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/examples/jewel/TourDeJewel/src/main/royale/DataGridPlayGround.mxml
b/examples/jewel/TourDeJewel/src/main/royale/DataGridPlayGround.mxml
index fc9b30ed9c..4a95d26e8d 100644
--- a/examples/jewel/TourDeJewel/src/main/royale/DataGridPlayGround.mxml
+++ b/examples/jewel/TourDeJewel/src/main/royale/DataGridPlayGround.mxml
@@ -96,12 +96,16 @@ limitations under the License.
private function loadDataProvider(datagrid:DataGrid):void
{
- datagrid.dataProvider = new ArrayList([
+ 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;
}
private function clearBindedDataProvider(datagrid:DataGrid):void