先看效果图,左边这张是没解决前,右边为解决后:
修改步骤:
1、从ext.net官网下载一份源代码;
2、使用VS2008打开源码,找到 Ext.Net 项目
3、打开 Build -> Ext.Net -> ux -> plugins -> gridfilters 文件夹;并打开 gridfilters.js 文件;
4、将 94 行 ListMenu 对象的构建代码段处修改成如下(红色部分为新增代码):
1
Ext.ux.menu.ListMenu
=
Ext.extend(Ext.menu.Menu, {
2 labelField : ' text ' ,
3 loadingText : ' Loading... ' ,
4 loadOnShow : true ,
5 enableScrolling: true ,
6 allowOtherMenus: true ,
7 single : false ,
8
9 constructor : function (cfg) {
10 this .selected = [];
11 this .addEvents(
12 ' checkchange '
13 );
14
15 Ext.ux.menu.ListMenu.superclass.constructor.call( this , cfg = cfg || {});
2 labelField : ' text ' ,
3 loadingText : ' Loading... ' ,
4 loadOnShow : true ,
5 enableScrolling: true ,
6 allowOtherMenus: true ,
7 single : false ,
8
9 constructor : function (cfg) {
10 this .selected = [];
11 this .addEvents(
12 ' checkchange '
13 );
14
15 Ext.ux.menu.ListMenu.superclass.constructor.call( this , cfg = cfg || {});
5、最后一步,重新编译所有代码,然后将编译好的DLL文件复制到自己的项目中引用就OK乐