Apache flex 如何反映列表中的更改。在itemRenderer中选择EdItem?
当我更改密码时: list.selectedItem.name='name2' 然后在我的项目渲染器中 未触发dataChange事件! 我无法用name属性更新标签Apache flex 如何反映列表中的更改。在itemRenderer中选择EdItem?,apache-flex,flex4,Apache Flex,Flex4,当我更改密码时: list.selectedItem.name='name2' 然后在我的项目渲染器中 未触发dataChange事件! 我无法用name属性更新标签 任何帮助?只有对数据提供程序的添加和删除会自动更新——要自动反映对现有项的修改,更新的特定属性应声明为[Bindable]。检查name属性是否可绑定 public class Item { public var noBinds:String = "initvalue"; [Bindable] public var b
任何帮助?只有对
数据提供程序的添加和删除会自动更新
——要自动反映对现有项的修改,更新的特定属性应声明为[Bindable]
。检查name
属性是否可绑定
public class Item
{
public var noBinds:String = "initvalue";
[Bindable]
public var bindMe:String = "initvalue";
//a constructor that takes two arguments goes here
}
//dp is the dataProvider of a data grid with two columns:
//this will add new item to the grid
dp.addItem(new Item("blah", "blah1"));
/* update the selected item */
//not bindable
dp.selectedItem.noBinds = "new string; but not shown";
//update the Bindable item
dp.selectedItem.bindMe = "new string; this will be updated";
设置
名称
属性