Home > Web Front-end > JS Tutorial > jQuery EasyUI API Chinese documentation - ComboGrid combination table_jquery

jQuery EasyUI API Chinese documentation - ComboGrid combination table_jquery

WBOY
Release: 2016-05-16 18:01:06
Original
1870 people have browsed it

Extended from $.fn.combo.defaults and $.fn.datagrid.defaults, overriding defaults with $.fn.combogrid.defaults.


Dependencies
combo
datagrid
Usage

Copy code The code is as follows:



Copy code The code is as follows:



Copy code The code is as follows:

$('#cc').combogrid({
panelWidth:450,
value:'006',
idField:'code',
textField:'name',
url:'datagrid_data.json',
columns:[[
{field:'code',title:'Code',width:60},
{field:'name',title:'Name ',width:100},
{field:'addr',title:'Address',width:120},
{field:'col4',title:'Col41',width:100}
]]
});

特性

其特性扩展自combo datagrid,下列是为 combogrid 增加的特性。

名称

类型

说明

默认值

loadMsg

string

datagrid 正加载远程数据时显示的信息。

null

idField

string

id 的字段名

null

textField

string

显示到文本框中的 text 字段名。

null

mode

string

定义当文本改变时如何加载 datagrid 数据。如果组合树从服务器加载就设为 'remote'

local

filter

function(q, row)

定义当 'mode' 设为 'local' 时如何选择本地数据。返回 true 就选中改行。

 

事件

其事件扩展自 combo datagrid

方法

其方法扩展自 combo,下列是位combogrid 追加或重写的方法。

名称

参数

说明

options

none

返回 options 对象。

grid

none

返回 datagrid 对象。

setValues

values

把组件的值设为数组。

setValue

value

Set the value of the component.

clear

none

Clear the value of the component.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template