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.

  • 相关阅读:
    Android之SQLite分页读取
    android 对sqlite数据库的增删改查
    Android如何导入已有的外部数据库(在raw下自己导入db文件)
    Android自定义对话框(Dialog)位置,大小
    android UI进阶之实现listview中checkbox的多选与记录
    Android开发教程 数据存储 SQLite
    Android 中的ORM框架
    android错误信息大整理
    C#中导出Execl
    关于用户退出,点击浏览器后退仍可回到原来页面解决二
  • 原文地址:https://www.cnblogs.com/justinliu/p/5961772.html
Copyright © 2011-2022 走看看