Override the list view web part menu
来源:互联网 发布:大成律师事务所知乎 编辑:程序博客网 时间:2024/05/20 04:10
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 isdynamic.
Hava a good time.
- Override the list view web part menu
- SharePoint At Work----Hyperlinks in the Data View Web Part
- SharePoint 2013 中使用客户化的 (Custom) Filter web part 过滤OOB list view
- How to show a Power View report at the SharePoint page (Silverlight Web Part)
- part 27- Customizing the autogenerated index view
- Part 28 - Customizing the autogenerated create view
- How to hide the web part toolbar
- WYSIWYG Web Editors - The List
- Android 错误 The method onClick(View) of type new View.OnClickListener(){} must override a superclass
- Android 错误 The method onClick(View) of type new View.OnClickListener(){} must override a superclass
- Android 错误 The method onClick(View) of type new View.OnClickListener(){} must override a superclass
- 解决The method onClick(View) of type new View.OnClickListener(){} must override a superclass错误
- The method onClick(View) of type new View.OnClickListener(){} must override a superclass
- Android 错误 The method onClick(View) of type new View.OnClickListener(){} must override a superclass
- 解决The method onClick(View) of type new View.OnClickListener(){} must override a superclass错误
- Android 错误 The method onClick(View) of type new View.OnClickListener(){} must override a superclas
- Android 错误 The method onClick(View) of type new View.OnClickListener(){} must override a superclas
- The method onClick(View) of type new View.OnClickListener(){} must override a superclass
- 直接读取内表
- Failed to create the Java Virtual Machine
- jad工具的用法
- OGNL表达式的用法
- define 的用法,小总结。
- Override the list view web part menu
- js浮点类型四则运算
- 关于UI设计你需要自问的十个问题
- Android OAUTH
- jsp连接数据库大全
- 何谓OHCI、UHCI、EHCI
- 在oracle中创建unique唯一约束(单列和多列)
- 多表连接时关于连接条件涉及到的Where 和And 问题
- SQL PATINDEX 详解