zoukankan      html  css  js  c++  java
  • Override the list view web part menu

    Sometime we need to customize the menu of a list view web part to implement our own feature.

    For example, dynamically change the script of new menu, update menu, etc.

    What we shall do is to get the menu object and change its attribute "ClientOnClickScript" or "ClientOnClickNavigateUrl".

    From Reflector, we can see the source code as follows:

     

     

    In the set method, it will change the other one. That is to say, we can select either to get our feautre done.

    Primary code is below:

     

    The Microsoft doesn't suggest this way, but it is dynamic.

    Hava a good time.

  • 相关阅读:
    Prometheus监控node-exporter常用指标含义
    Go 程序开发的注意事项
    kafka集群安装和使用
    storm集群的安装
    如何用zabbix监控mysql多实例
    企业环境下用脚本设置ubuntu防火墙
    使用教程:宝塔服务器管理助手Linux面版
    Zabbix是什么?
    小白都能看懂的Linux系统下安装配置Zabbix
    Linux:检查当前运行级别的五种方法
  • 原文地址:https://www.cnblogs.com/justinliu/p/5961772.html
Copyright © 2011-2022 走看看