JQuery 中的DataGrid 属性

DataGrid Properties

Override default with $.fn.datagrid.defaults.

NameTypeDescriptionDefault
titlestringThe datagrid panel title text.null
iconClsstringA CSS class that will provide a background image to be used as the header icon.null
borderbooleanTrue to show datagrid panel border.true
widthnumberThe width of datagrid width.auto
heightnumberThe height of datagrid height.auto
columnsarrayThe datagrid columns config object, see column properties for more details.null
frozenColumnsarraySame as the columns property, but the these columns will be frozen on left.null
stripedbooleanTrue to stripe the rows.false
methodstringThe method type to request remote data.post
nowrapbooleanTrue to display data in one line.true
idFieldstringIndicate which field is an identity field.null
urlstringA URL to request data from remote site.null
loadMsgstringWhen loading data from remote site, show a prompt message.Processing, please wait …
paginationbooleanTrue to show a pagination toolbar on datagrid bottom.false
rownumbersbooleanTrue to show a row number column.false
singleSelectbooleanTrue to allow selecting only one row.false
fitbooleanTrue to set size to fit it's parent container.false
pageNumbernumberWhen set pagination property, initialize the page number.1
pageSizenumberWhen set pagination property, initialize the page size.10
pageListarrayWhen set pagination property, initialize the page size selecting list.[10,20,30,40,50]
queryParamsobjectWhen request remote data, sending additional parameters also.{}
sortNamestringDefines which column can be sorted.null
sortOrderstringDefines the column sort order, can only be 'asc' or 'desc'.asc

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值