apache / apache/royale-asjs

data binding in datagrid

Open
#1,263 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
ActionScript
Stars
380
Forks
120
PR merge metrics
No merged PRs in 30d

Description

can someone please help me why data is not being updated in DataGrid
below is the simple code. Log is showing that data is updated in arraylist but same is reflecting in datagrid

MXML-------

```















```

SocketModel.as

```
package views.actionitemviews.stockSocket {
[Bindable]
public class StockModel {
public var symbol:String;
public var price:Number;
public var timestamp:String;
public function StockModel(symbol:String, price:Number, timestamp:String = "") {
this.symbol = symbol;
this.price = price;
this.timestamp = timestamp;
}
}
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the MXML view, especially the ContainerDataBinding bead, DataGrid dataProvider, and updateFromJSON in the embedded script. Then inspect StockModel.as and the [Bindable] fields to trace how changes to existing rows are communicated. Done means updates to price and timestamp in the stock list are reflected in the DataGrid.

Written by the indexing model from the issue text.

Assessment

Tech stack
xml
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.