开发者

Flex 4 - pushing a text field's value into an array that populates a datagrid

开发者 https://www.devze.com 2023-02-01 11:00 出处:网络
Is this possible? I would like to be able to push a text field\'s value into an array on a button click, then have that array populate a data grid. I\'m kind of new to flex and was wondering if s开发者

Is this possible? I would like to be able to push a text field's value into an array on a button click, then have that array populate a data grid. I'm kind of new to flex and was wondering if s开发者_JAVA百科omeone could point me in a direction or show me how to do this.


Yes, this is very possible. Create an array and assign it as the dataProvider for your DataGrid (Make sure your array is declared to as Bindable). Then append the value of the text field to your array whenever the user clicks the button. The DataGrid should update automatically whenever your bindable array changes. Hope that helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消