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.

  • 相关阅读:
    svn版本控制器在vs2013中的使用
    在本地环境用虚拟机win2008 sever搭建VS2013 + SVN 代码版本控制环境
    luogu 2422 良好的感觉
    loj 10181 绿色通道
    luogu 2569 [SCOI2010]股票交易
    luogu 3946 ことりのおやつ(小鸟的点心)
    luogu 2865 [USACO06NOV]路障Roadblocks
    luogu 4554 小明的游戏
    luogu 2411 白银莲花池 && luogu 1606 Lilypad Pond
    luogu 2850 [USACO06DEC]虫洞Wormholes
  • 原文地址:https://www.cnblogs.com/justinliu/p/5961772.html
Copyright © 2011-2022 走看看