jQuery MiniUI

标题: 客户端过滤如何使用js方式设置. [打印本页]

作者: nbakill2    时间: 2014-3-7 09:00:20     标题: 客户端过滤如何使用js方式设置.

http://www.miniui.com/demo/#src=datagrid/filter_client.html

这个例子是 HTML的方式..

我现在是从后台传回来的...如何使用js 方式..

在 grid.setColumns的时候就设置上去.

或者说有其他变通的方法.

作者: felt    时间: 2014-3-7 09:29:56

http://www.miniui.com/demo/#src=datagrid/setcolumns.html
参考这个demo
{ field: "loginname", width: 120, headerAlign: "center", allowSort: true, header: "员工账号",filter:{type:"textbox",style:"width:100%"}, editor: { type: "textbox", minValue: 0, maxValue: 200, value: 25} }
和editor差不多的,在列对象里加入filter就可以了
grid要设置下showFilterRow="true"




欢迎光临 jQuery MiniUI (http://miniui.com/discuss/) Powered by Discuz! X2