【发布时间】:2020-04-07 12:09:57
【问题描述】:
使用 -nattable.doCommand(新的结构刷新命令()) -nattable.refresh()
现在我想在 nat 表中保留选择
当我使用- natpage.selectionProvider().getSelection();刷新后选择不再可用
如何在 natable 中保留选择,以便用户可以多次更新同一选定行?
【问题讨论】:
使用 -nattable.doCommand(新的结构刷新命令()) -nattable.refresh()
现在我想在 nat 表中保留选择
当我使用- natpage.selectionProvider().getSelection();刷新后选择不再可用
如何在 natable 中保留选择,以便用户可以多次更新同一选定行?
【问题讨论】:
使用natTable.refresh(false),因为听起来您不会更改底层数据模型的结构,因此不需要进行结构刷新。
您还可以在这里查看更多信息: NatTable preserve row selection on clear data and reload
【讨论】: