有没有一种方法可以在网格顶部隐藏快速查找? [英] Is there a way how to hide quick find on top of grid?

查看:57
本文介绍了有没有一种方法可以在网格顶部隐藏快速查找?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过编程方式或通过功能区/自定义方式将快速查找搜索框隐藏在网格顶部?顺便说一句,它应该以受支持/可行的方式(不能直接进行DOM操作).

Is there a way to hide quick find search box on top of grid - either programmatically or via ribbon / customizations ? Btw, it should be in supported/able manner (no direct DOM manipulations).

推荐答案

如果有人感兴趣,那是可能的;它涉及运送您自己的自定义网格控件.然后在控制清单中确保指定

If anyone is interested - it is possible; it involves a shipping of your own custom grid control. Then in control manifest make sure to specify

cds-data-set-options ="displayViewSelector:false; displayQuickFind:false""

<?xml version="1.0" encoding="utf-8"?>
<manifest>
  <control namespace="MyControls.MyGridControl" constructor="MyGridControl" display-name-key="MyGridControl" description-key="MyGridControl" version="1.0.0" hidden="false" control-type="virtual">
    <modes><read /><edit /></modes>
    <data-set name="Grid" display-name-key="CC_Grid_DSGrid" cds-data-set-options="displayViewSelector:false;displayQuickFind:false"></data-set>
    <dependencies>
      <dependency name="MscrmControls.Grid.ReadOnlyGrid" />
    </dependencies>
    <resources>
      <code path="MyGridControl.js" order="1" />
    </resources>
    <AvailableOn>
      <web classic="enable" />
      <phone />
      <tablet />
    </AvailableOn>
  </control>
</manifest>

这篇关于有没有一种方法可以在网格顶部隐藏快速查找?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆