繁体   English   中英

SAPUI5 SmartTable 动态忽略列

[英]SAPUI5 SmartTable dynamically ignore Columns

有没有办法使用 sap.ui.comp.smarttable.SmartTable 的ignoredFields属性来动态忽略列? 应用程序运行时,应更改ignoredFields的值。 使用ignoredFields是正确的方法还是有更好的方法? I already tried calling the setIgnoredFields() function of my SmartTable, but it didn't make any effect on my SmartTable, except when I called it in the onInit() function of the respective controller, which of course would defy the dynamic approach i正在照顾。

我发现在 SmartTable 中动态隐藏列的唯一方法是使用我需要的所有列重新定义内部表的列,然后相应地设置这些列的“可见”属性。

我仍然想知道这是否是最好的解决方案,但它是唯一有效的解决方案......

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM