zoukankan      html  css  js  c++  java
  • Flexigrid去掉列选择

    Flexigrid中会出现列选择的小黑箭头,有时挺讨厌,想去掉。发现没有控制的地方,于是自己加。

    在flexigrid.js中增加

    在定义中增加

    p = $.extend({ //apply default properties
    			height: 200, //default height
    			 'auto', //auto width
    			striped: true, //apply odd even stripes
    			novstripe: false,
    			min 30, //min width of columns
    			minheight: 80, //min height of columns
    			resizable: true, //allow table resizing
    			url: false, //URL if using data from AJAX
    			dwrAction:function(){},
    			method: 'POST', //data sending method
    			dataType: 'xml', //type of data for AJAX, either xml or json
    			errormsg: 'Connection Error',
    			usepager: false,
    			nowrap: true,
    			page: 1, //current page
    			total: 1, //total pages
    			useRp: true, //use the results per page select box
    			rp: 15, //results per page
    			rpOptions: [10, 15, 20, 30, 50], //allowed per-page values 
    			title: false,
    			pagestat: 'Displaying {from} to {to} of {total} items',
    			pagetext: 'Page',
    			outof: 'of',
    			findtext: 'Find',
    			procmsg: 'Processing, please wait ...',
    			query: '',
    			qtype: '',
    			isColSel:true,//增加控制项 add by danielinbiti
    			nomsg: 'No items',


    内容中把如下改成下面的样子

    $(g.nBtn).css({  
    							'left': nl,
    							top: g.hDiv.offsetTop
    						}).show();
    if(p.isColSel){//增加的行
    						$(g.nBtn).css({  
    							'left': nl,
    							top: g.hDiv.offsetTop
    						}).show();
    				  }


  • 相关阅读:
    基于视网膜虹膜识别的内容分级系统
    C# 反射详解一
    C# 委托浅析
    .Net Core中使用Dapper构建泛型仓储
    C# 泛型详解
    非对称可逆加密RSA
    对称可逆加密Des
    .NET Core 3.0 中间件 Middleware
    .NET Core3.0 日志 logging
    .Net Core3.0依赖注入DI
  • 原文地址:https://www.cnblogs.com/snake-hand/p/3141047.html
Copyright © 2011-2022 走看看