77范文网 - 专业文章范例文档资料分享平台

jquery-easyui中文详细说明文档(4)

来源:网络收集 时间:2018-09-25 下载这篇文档 手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:或QQ: 处理(尽可能给您提供完整文档),感谢您的支持与谅解。点击这里给我发消息

Markup

$(\'#tt\').datagrid(options);

The DataGrid data format sample DataGrid的数据格式样本

{\\

{Adult Female

{

mid

{id

{Adult

{d

{tail

{Female

{Male

{MaleDependencies resizable linkbutton pagination Options

DataGrid Properties

Override default with $.fn.datagrid.defaults. Name title iconCls border width height columns Type string string Description DataGrid的面板标题文字。 一个CSS类,将提供一个背景图片作为标题图标。 Default null null true auto auto null null false post true null null Processing, please wait … 处理中,请稍boolean 真到DataGrid中显示面板的边界。 number 宽度的DataGrid的宽度。 number 该数据网格的高度的高度。 array DataGrid的列的配置对象,看到更多的细节列属性。 Columns属性相同,但将这些列左冻结。 frozenColumns array striped method nowrap idField url loadMsg boolean 条纹行。 string 该方法要求远程数据类型。 boolean 真正显示在同一行数据。 string string string 说明哪些字段是一个标识字段。 一个URL请求从远程站点的数据。 当从远程站点加载数据,显示一个提示信息。

候… pagination rownumbers singleSelect fit pageNumber pageSize pageList boolean 展现出对DataGrid的底部分页工具栏。 boolean 显示行号列。 boolean 只允许选择一行。 boolean 设置大小,以适应它的父容器。 number 当设置分页属性,初始化的页码。 number 当设置分页属性,初始化的页面大小。 array false false false false 1 10 When set pagination property, initialize [10,20,30,40,50] the page size selecting list. 当设置分页属性,初始化的页面大小选择清单。 When request remote data, sending {} additional parameters also. 当请求,远程数据发送额外的参数也。 Defines which column can be sorted. null 可排序的列定义。 Defines the column sort order, can only asc be ‘asc’ or ‘desc’. 定义的列的排序顺序,只能是’递增’或’递减’。 queryParams object sortName sortOrder string string Column Properties The DataGrid Columns is an array object, which element is an array too. DataGrid的列是一个数组对象,它是一个数组元素太多。

The element of element array is a config object, which defines every column field. 该元素的数组元素是一个配置对象,它定义了每列字段。 code example: columns:[[

{field:\'itemid\',title:\'Item ID\',rowspan:2,width:80,sortable:true},

{field:\'productid\',title:\'Product ID\',rowspan:2,width:80,sortable:true}, {title:\'Item Details\',colspan:4} ],[

{field:\'listprice\',title:\'List Price\',width:80,align:\'right\',sortable:true}, {field:\'unitcost\',title:\'Unit Cost\',width:80,align:\'right\',sortable:true}, {field:\'attr1\',title:\'Attribute\',width:100}, {field:\'status\',title:\'Status\',width:60} ]] Name title field Type string string Description The column title text. 列标题文字。 The column field name. 列字段的名称。 Default undefined undefined width rowspan colspan align number The width of column. 该列的宽度。 number Indicate how many rows a cell should take up. 显示多少行的单元格应该承担。 number Indicate how many columns a cell should take up. 说明有多少列的单元格应该承担。 string undefined undefined undefined Indicate how to align the column data. ‘left’,\'right’,\'center’ undefined can be used. 说明如何对齐列数据。’left’,\'right’,\'center’都可以使用。 undefined undefined sortable boolean True to allow the column can be sorted. 真正让列可以进行排序。 checkbox boolean True to show a checkbox. True显示一个复选框。 Events Name onLoadSuccess onLoadError onClickRow Parameters none none rowIndex, rowData Description Fires when remote data is loaded successfully. 触发时,远程数据加载成功。 Fires when some error occur to load remote data. 触发发生时的一些错误加载远程数据。 Fires when user click a row, the parameters contains: 触发时,用户点击一个行,参数包括: rowIndex: the clicked row index, start with 0 rowIndex:单击的行的索引,从0开始 rowData: the record corresponding to the clicked row rowData:记录点击相应的行 Fires when user dblclick a row, the parameters contains: 当用户触发的DblClick一排,参数包括: rowIndex: the clicked row index, start with 0 rowIndex:单击的行的索引,从0开始 rowData: the record corresponding to the clicked row rowData:记录点击相应的行 Fires when user sort a column, the parameters contains: 当用户触发排序列,参数包括: sort: the sort column field name 排序:排序列字段名称 order: the sort column order 订购:排序列顺序 Fires when user select a row, the parameters contains: 触发时,用户选择一行,参数包括: rowIndex: the selected row index, start with 0 rowIndex:选定行的索引,从0开始 rowData: the record corresponding to the selected row rowData:记录对应到选定的行 Fires when user unselect a row, the parameters contains: onDblClickRow rowIndex, rowData onSortColumn sort, order onSelect rowIndex, rowData onUnselect rowIndex, rowData 触发时,用户取消选择一个行,参数包括: rowIndex: the unselected row index, start with 0 rowIndex:没有被选中的行的索引,从0开始 rowData: the record corresponding to the unselected row rowData:记录对应的未选中行 Methods Name options resize reload Parameter Description none none none Return the options object. 返回的选择对象。 Do resize and do layout. 做调整,做布局。 Reload the rows. 重新加载行。 fix columns size. 大小固定栏目。 Load local data, the old rows will be removed. 加载本地数据,旧的行会被删除。 Return the first selected row record or null. 返回第一个选中行的记录或空。 Return all selected rows, when no record selected, am empty array will return. 返回所有选定行,选择时没有记录,我将返回空数组。 Clear all selections. 清除所有选择。 Select a row, the row index start with 0. 选择一个行,行索引以0开始。 Select a row by passing id value parameter. 选择一列由ID值传递参数。 Unselect a row. 取消选择1行。 fixColumnSize none loadData getSelected getSelections param none none clearSelections none selectRow selectRecord unselectRow index idValue index

百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库jquery-easyui中文详细说明文档(4)在线全文阅读。

jquery-easyui中文详细说明文档(4).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印 下载失败或者文档不完整,请联系客服人员解决!
本文链接:https://www.77cn.com.cn/wenku/zonghe/160243.html(转载请注明文章来源)
Copyright © 2008-2022 免费范文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ: 邮箱:tiandhx2@hotmail.com
苏ICP备16052595号-18
× 注册会员免费下载(下载后可以自由复制和排版)
注册会员下载
全站内容免费自由复制
注册会员下载
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: