在 Flashbuilder 中更改 dataProvider 的 id
我为此使用 Flashbuilder。我有一个按钮可以像这样更改 dataProvider 的 id:
result.datagrid.dataProvider="lineup_1";
但是,我还有另一个按钮,在单击时也应该更改 dataprovider 的 id,但是对此:
result.datagrid.dataProvider="lineup_2";
但是,它只响应按下的第一个按钮。之后,id 保持不变,这是逻辑。但我需要知道如何在按下按钮后更改 id。
I'm using Flashbuilder for this. I have a button that changes the id of a dataProvider like this:
result.datagrid.dataProvider="lineup_1";
However, I have another button which should also change the id of the dataprovider when clicked on, but to this:
result.datagrid.dataProvider="lineup_2";
However, it only responds to the first button pressed on. After that, the id stays the same, which is logic. But I need to know how I can change the id after a button is pressed too.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果你说
您不更改 dataProvider 的 id,而是更改 dataProvider。因此,在这两个操作中,您都更改了 dataProvider。
更多关于这一点,我认为您需要在更改后刷新您的数据提供程序。像这样的东西:
If you say
you do not change dataProvider's id, you change the dataProvider. So at both actions, you change the dataProvider.
More on this, I think you need to make a refresh o your dataprovider after changing. Something like :