`

JQuery DataGrid 中文文档 -http://xiaomao870311.blog.51cto.com/1458701/382534

阅读更多
JQuery DataGrid的例子在附件里面,下面给出Jquery DataGrid 的中文文档。

Name Type Description Default
title string The datagrid panel title text. DataGrid的面板标题文字。 null
iconCls string A CSS class that will provide a background image to be used as the header icon. 一个CSS类,将提供一个背景图片作为标题图标。 null
border boolean True to show datagrid panel border. 真到DataGrid中显示面板的边界。 true
width number The width of datagrid width. 宽度的DataGrid的宽度。 auto
height number The height of datagrid height. 该数据网格的高度的高度。 auto
columns array The datagrid columns config object, see column properties for more details. DataGrid的列的配置对象,看到更多的细节列属性。 null
frozenColumns array Same as the columns property, but the these columns will be frozen on left. Columns属性相同,但将这些列左冻结。 null
striped boolean True to stripe the rows. True 条纹行。 false
method string The method type to request remote data. 该方法要求远程数据类型。 post
nowrap boolean True to display data in one line. 真正显示在同一行数据。 true
idField string Indicate which field is an identity field. 说明哪些字段是一个标识字段。 null
url string A URL to request data from remote site. 一个URL请求从远程站点的数据。 null
loadMsg string When loading data from remote site, show a prompt message. 当从远程站点加载数据,显示一个提示信息。 Processing, please wait … 处理中,请稍候…
pagination boolean True to show a pagination toolbar on datagrid bottom. True展现出对DataGrid的底部分页工具栏。 false
rownumbers boolean True to show a row number column. True显示行号列。 false
singleSelect boolean True to allow selecting only one row. True只允许选择一行。 false
fit boolean True to set size to fit it’s parent container. True设置大小,以适应它的父容器。 false
pageNumber number When set pagination property, initialize the page number. 当设置分页属性,初始化的页码。 1
pageSize number When set pagination property, initialize the page size. 当设置分页属性,初始化的页面大小。 10
pageList array When set pagination property, initialize the page size selecting list. 当设置分页属性,初始化的页面大小选择清单。 [10,20,30,40,50]
queryParams object When request remote data, sending additional parameters also. 当请求,远程数据发送额外的参数也。 {}
sortName string Defines which column can be sorted. 可排序的列定义。 null
sortOrder string Defines the column sort order, can only be ‘asc’ or ‘desc’. 定义的列的排序顺序,只能是’递增’或’递减’。 asc
Events
Name Parameters Description
onLoadSuccess none Fires when remote data is loaded successfully. 触发时,远程数据加载成功。
onLoadError none Fires when some error occur to load remote data. 触发发生时的一些错误加载远程数据。
onClickRow rowIndex, rowData 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:记录点击相应的行
onDblClickRow rowIndex, 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:记录点击相应的行
onSortColumn sort, order Fires when user sort a column, the parameters contains: 当用户触发排序列,参数包括:
sort: the sort column field name 排序:排序列字段名称
order: the sort column order 订购:排序列顺序
onSelect rowIndex, rowData 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:记录对应到选定的行
onUnselect rowIndex, rowData Fires when user unselect a row, the parameters contains: 触发时,用户取消选择一个行,参数包括:
rowIndex: the unselected row index, start with 0 rowIndex:没有被选中的行的索引,从0开始
rowData: the record corresponding to the unselected row rowData:记录对应的未选中行
Methods
Name Parameter Description
options none Return the options object. 返回的选择对象。
resize none Do resize and do layout. 做调整,做布局。
reload none Reload the rows. 重新加载行。
fixColumnSize none fix columns size. 大小固定栏目。
loadData param Load local data, the old rows will be removed. 加载本地数据,旧的行会被删除。
getSelected none Return the first selected row record or null. 返回第一个选中行的记录或空。
getSelections none Return all selected rows, when no record selected, am empty array will return. 返回所有选定行,选择时没有记录,我将返回空数组。
clearSelections none Clear all selections. 清除所有选择。
selectRow index Select a row, the row index start with 0. 选择一个行,行索引以0开始。
selectRecord idValue Select a row by passing id value parameter. 选择一列由ID值传递参数。
unselectRow index Unselect a row. 取消选择1行。

原文页面:http://jquery-easyui.wikidot.com/document:datagrid
分享到:
评论

相关推荐

    PDF精华

    c#转化PDF文件 ...//nongxueyuan.cn/cbcv/35550.html<br><br>ASP.NET提供文件下载函数(支持大文件、续传、速度限制、资源占用小) http://www.cnblogs.com/ghd258/articles/260236.html<br><br>ASP.NET中将数据...

    Flex课程学习(附带源码)

    Button、CheckBox、ColorPicker、DataGrid、DateField、HSlider、HorizontalList、Image、LinkButton Label、List MumericStepper、PopUpButton、ProgressBar、RadioButton、RichTextEditor、Text、TextArea、...

    c#分页源码

    一个相当独立的....支持 DataGrid 及 Repeater分页使用方法:新建两个解决方案 一为Pager,一为webtest 下载后请将两个解决方案合并一下,即新的解决方案包括两个项目 Pager WebTest 详细介绍看以下链接 ...

    Jquery Datagrid 动态分页以及CRUD(增删改查)

    NULL 博文链接:https://wangmengbk.iteye.com/blog/754872

    C#写论坛v0.2版

    DATAGRID显示数据/排序/链接; DATELIST显示数据/图片; 新增功能: 搜索/置顶/精华 贴的设置 其实就怎么简单,就是将一些小技巧混合应用。 开放源码有两个目的: 1.供大家参考和指正; 2.希望大家能够在此...

    Easyui扩展datagrid-dnd.js,实现拖动grd的必要文件

    Easyui的扩展datagrid-dnd.js,实现拖动datagrid行到其他数据表格的必要文件

    DevExpress gridview下拉框repositoryItemComboBox的使用

    DevExpress gridview下拉框repositoryItemComboBox的使用...

    jQuery EasyUI 1.2.4 API 中文文档.chm

    本 chm 文档是根据博客园“风流涕淌”的《jQuery EasyUI 1.2.4 API 中文文档(完整)目录》整理而成 http://www.cnblogs.com/Philoo/archive/2011/11/17/jeasyui_api_index.html Base 基础 Documentation 文档 ...

    Python库 | collective.datagridcolumns-0.6.0.zip

    资源分类:Python库 所属语言:Python 资源全名:collective.datagridcolumns-0.6.0.zip 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059

    gong-wpf-dragdrop:GongSolutions.WPF.DragDrop库是WPF的拖放框架

    GongSolutions.WPF.DragDrop 一种易于使用的WPF拖放框架。 支持.NET Framework 4.5... 与ListBox , ListView , TreeView , DataGrid和任何其他ItemsControl 。 可以将项目插入,移动或复制到相同控件的集合或另一

    PHP编程 源代码 光盘

    (17)第17章是在线图片管理系统,要访问该系统,首先要创建数据库“dbpic”,然后创建数据库表“picbase”,数据库文件为database.sql,输入地址如下所示:http://localhost/pic/index.php (18)第18章是功能完善...

    可删除列的datagrid

    NULL 博文链接:https://176170847.iteye.com/blog/791601

    jquery-easyui-datagridview datagrid-detailview.js升级自定义展开按钮功能

    jquery-easyui的扩展组件jquery-easyui-datagridview,其中的datagrid-detailview.js可方便地生成子网格,但是每行均默认生成展开按钮,实际我们希望对某些行不显示展开按钮,网上很多人提供的解决方案就是通过dom...

    datagrid-detailview.js下载

    easyui的datagridview拓展,使用方法看我的博文,网址:https://blog.csdn.net/qq_30907845/article/details/108963344

    datagrid-dnd.zip

    附件中包含示例页面,需要引用以下几个js <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css"> ... <script type="text/javascript" src="../../jquery.easyui.min.js"></script>

    全新打造的datagrid控件

    ' 可以显示汉字标题、列宽、左边行号; ' 可以按照标题行排序; ' 可以设置脚注汇总行(排序后仍然在最后一行); ' 表格中有右键菜单; ' 可以根据各单元格的数据类型,自动设置显示格式; ' 对于日期时间数据,...

    datagrid-export.js

    该文件是用来将easyui-datagrid按照格式导出到excel中,可以将合并的单元格,复杂的表头,背景色及字色等按照显示的样式导出到excel,即所见即所得

    LoggingTool.exe

    http://www.microsoft.com/china/MSDN/library/netFramework/netframework/NFLoggingTool.mspx?mfr=true 注意要下载本文的代码:LoggingTool.exe(131KB) 必须安装和解压才可以见到文件和代码。 二、C#(winForm)...

    Grid++Report(锐浪报表工具) 6.5 最新版下载

    提供一个具有超强数据展现功能的数据网格(DataGrid)部件,制作各种表格报表非常简便,除了提供打印功能外,Grid++Report还提供独有的报表查询显示功能,像各种数据网格(DataGrid)控件一样显示数据,让报表的查询显示...

    DataGridView绘制多维表头 完善版

    在做信息管理系统时,很多中式...然而,非常遗憾的是,Winform中DataGrid、DataGridView本身不提供多维表头设计,通过继承DataGridView对其进行扩展,利用标题行进行重绘,实现多维表头的友好界面。 参考资源地址: ...

Global site tag (gtag.js) - Google Analytics