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.

  • 相关阅读:
    线程之Thread
    如何通过HTTP优雅调用第三方-Feign
    Spring AOP核心源码
    Spring-beans之BeanFactory初始化
    spring-core源码走读
    power of two
    排序算法(二)两种选择排序
    排序算法(一)四种冒泡排序
    约瑟夫问题
    我理解的CLH
  • 原文地址:https://www.cnblogs.com/justinliu/p/5961772.html
Copyright © 2011-2022 走看看