首页 文章

重新排序网格工具栏按钮

提问于
浏览
1

我们如何重新排序网格工具栏中的按钮?

我已经定义了一个按钮,在我的扩展中使用自定义逻辑将行添加到网格中,并作为自定义工具栏按钮添加到PXGrid . 我将默认的AddNew按钮设置为enabled = false .

public PXAction<RQBiddingVendor> InsertSplitLine;
 [PXUIField(DisplayName = "Insert Line", MapEnableRights = PXCacheRights.Select, MapViewRights = PXCacheRights.Select)]
 [PXButton(FieldOrdinal=0)]
 public virtual void insertSplitLine()
 {//SOME LOGIC HERE TO INSERT RECORD TO CACHE}

现在自定义按钮显示为第三个 . REFRESH,DELETE,INSERT
enter image description here

我想在删除之前移动插入 . 尝试使用字段序数但不起作用 . 我们怎样才能做到这一点?

1 回答

  • 1

    我找到了实现这一目标的方法 .

    我设置如下

    Grid> ActionBar> GroupIndex = 1,Order = 1 Grid >> ActionBar-CustomItems> ActionBar> GroupIndex = 1,Order = 0

相关问题