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.

  • 相关阅读:
    RocketMQ系列(一)基本概念
    怎样实现登录?| Cookie or JWT
    Hotspot GC研发工程师也许漏掉了一块逻辑
    初级Java工程师也能轻松进行JVM调优了
    自动化不知如何参数化(二)?xlrd来帮你解决
    自动化不知如何参数化(一)?xlrd来帮你解决
    SpringCloud系列之API网关(Gateway)服务Zuul
    SpringCloud系列之客户端负载均衡Netflix Ribbon
    SpringCloud系列之使用Feign进行服务调用
    Spring Security系列之极速入门与实践教程
  • 原文地址:https://www.cnblogs.com/justinliu/p/5961772.html
Copyright © 2011-2022 走看看