【问题标题】:Advanced DataGrid Flex 3 - ItemRenderer and Tree displayAdvanced DataGrid Flex 3 - ItemRenderer 和树显示
【发布时间】:2009-08-08 14:32:02
【问题描述】:

我正在使用带有分层数据的 Flex 3 的 Advanced DataGrid。 itemRenderer 是一个接受数字的 TextInput。当我在给定字段中输入数据并单击该行的相应展开树图标时,我希望在树节点中输入的数量应该级联到其子行。但我发现高级 DataGrid 的本质是错误的。 当我输入数据并单击树形图标时,数据不会填充到子窗口中,除非我不会将焦点从编辑控件中移开。 我尝试使用 itemEditEnd、itemFocusOut 等,但没有用。我必须明确单击任何其他列,然后展开树。 我在哪里犯错了吗?

【问题讨论】:

    标签: datagrid flex3 hierarchical


    【解决方案1】:

    我找到了我的问题的解决方案,它有点难看,但它有效。我必须为 textinput 注册两个事件,如下所示 addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, allocateAmount);

    addEventListener(FocusEvent.KEY_FOCUS_CHANGE, allocateAmount);

    然后通过使用 IViewCursor 我可以更新数据。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-01-21
      • 1970-01-01
      • 2011-05-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-04-30
      相关资源
      最近更新 更多