jqGrid 5.x 参数详解

jqGrid options
Property Type Description Default Can be Changed?
addOptions object The parameter stores the add options (parameters) in navigator 
see navigator 
if the option storeNavOptions 
is set to true and navGrid method is called 

该参数存储在导航仪的附加选项(参数)见导航 
如果选项storeNavOptions设置为true和navGrid 方法被调用
empty No
ajaxCellOptions object When defined this option can overwrite the ajax options when cell editing is enabled and 
the cell submitting is defined via url. All the ajax options for cell submit can be overwriten. 
See Cell editing 

当定义当单元格编辑已启用,此选项可以覆盖AJAX选项 小区提交通过URL定义。所有细胞的AJAX选项提交可以自动覆盖。 见单元格编辑
empty object Yes
ajaxGridOptions object This option allows to set global ajax settings for the grid when requesting data. With this 
option it is possible to overwrite all current ajax settings in the grid including the 
errorsuccess and beforeSend events. 

这个选项允许请求数据时的定格全局AJAX设置。有了这个 选项,可以覆盖网格中的所有当前的ajax设置,包括 错误,成功和beforeSend事件。
empty object Yes
ajaxRowOptions object This option allow to set global ajax settings for the 
Inline editiing 
when we save the data to the server. Note that with this option is possible to overwrite
all current ajax setting in the save request including the complete event. 

该选项允许对设置全局AJAX设置 内嵌editiing 当我们将数据保存到服务器。请注意,此选项可能覆盖 在包括完整的情况下保存请求所有当前的ajax设置。
empty Yes
ajaxSelectOptions object This option allows to set global ajax settings for the created select element (in all editing 
and search modules) when the select is obtained via dataUrl option in editoptions 
or searchoptions objects See editing and searching 

此选项可用于创建的选择元素设置全局AJAX设置(在所有编辑 和搜索模块)时,选择通过获得dataUrl在选项editoptions 或searchoptions对象见编辑和搜索
empty object Yes
ajaxSubgridOptions object When defined this option can overwrite the ajax options in subgrid when the subgrid make 
a ajax call to obtain the data. See Subgrid 

当定义了这个选项,可以覆盖AJAX选项亚格当亚格做 一个AJAX调用来获取数据。见次网格
empty Yes
altclass string This options is deprecated as of version 5.2 

此选项已废弃的5.2版本
   
altRows boolean Set a zebra-striped grid (alternate rows have different styles). When this option is set 
to true we add a class described in styleUI object. The name of the class is stripedTable 
in the common styleUI object 

设置斑马条纹网格(交替的行有不同的风格)。当此选项设置 为true,我们加入styleUI对象所描述的一类。类的名称是stripedTable 在公共styleUI对象
false No
autoencode boolean When set to true encodes the incoming data from server or array and encodes the posted data 
(from editing modules). For example < will be converted to &lt;
See the common functionsfor htmlEncode 

设置为true时编码来自服务器或阵列的输入数据和编码发布数据 (从编辑模块)。例如<将被转换为<。 见常用功能进行的HTMLEncode
false Yes
autowidth boolean When set to true, the grid width is recalculated automatically to the width of the parent 
element. This is done only initially when the grid is created. In order to re-size the 
grid when the parent element or window changes width please use the option responsive- see below 

设置为true时,网格宽度自动重新计算至母体的宽度 元件。这是只有在创建网格初步完成。为了重新大小的 格当父元素或窗口的改变宽度,请使用选项响应 -见下文
false No
caption string Defines the caption for the grid. This caption appears in the caption layer, which is above 
the header layer see How It Works. If the string is 
empty the caption does not appear. To change the caption dynamically use the method setCaption 

定义网格的标题。本字幕出现在字幕层,也就是上面 头部层看到如何工作。如果字符串是 空的标题不会出现。要更改标题动态使用的方法setCaption
empty string No
cellLayout integer This option determines the padding + border width of the cell. Usually this should not be 
changed, but if custom changes to the td element are made in the grid css file, 
this will need to be changed. The initial value of 5 means paddingLef(2) + paddingRight 
(2) + borderLeft (1) = 5 

此选项确定小区的填充+边框宽度。通常这不应该被 改变,但是如果要自定义更改TD元素在网格css文件制成, 这将需要改变。的5的初始值意味着paddingLef(2)+ paddingRight (2)+ borderLeft(1)= 5
5 No
cellEdit boolean Enables (disables) cell editing. See Cell Editing 
for more details. 

启用(禁用)单元格编辑。见单元格内编辑 的更多细节。
false Yes
cellsubmit string Determines where the contents of the cell should be saved. Possible values are remote 
in this case the data is saved via ajax and clientArray in case the data is 
saved in the local data array. See Cell Editing for more details. 

确定在单元格的内容应该被保存。可能的值是远程 在这种情况下,数据是通过AJAX并保存clientArray的情况下的数据被 保存在本地数据阵列英寸 见单元格内编辑 的更多细节。
remote Yes
cellurl string The url where the cell is to be saved using ajax. Valid only if celsubmit is set 
to remote. See Cell Editing for more details 

该网址,其中电池是使用AJAX保存。仅仅当celsubmit设置 到远程。见细胞编辑了解更多详情
null Yes
cmTemplate object Defines a set of properties which override the default values in colModel for all 
columns. For example if you want to make all columns not sort-able, then only one property 
here can be specified instead of specifying it in all columns in colModel [sortable:false] 

定义一组覆盖缺省值的属性的colModel所有 列。例如,如果你想使所有列不排序能,那么只有一个属性 在这里可以指定,而不是在所有列指定它colModel [sortable:false]
null No
colFilters object If set the object defines the initial search rules for a field defined in colModel. The option 
is valid if colMenu option is set to true. For more information see Column menu

如果设置的对象定义为在colModel定义的字段中的初始搜索规则。选项 ,如果有效colMenu选项设置为true。欲了解更多信息,请参阅 列菜单。
empty No
colMenu boolean Enables column menu for a column with a set of predefined actions. The menu creates a button 
on the header of each or certain grid cell which when clicked activate a form with a 
actions.For more information see Column menu

启用菜单栏与一组预定义的行动的一列。菜单创建一个按钮 上点击它时,每个或某些网格单元的报头中激活形式与 actions.For更多信息,参见栏菜单。
false No
colModel array Array which describes the parameters of the columns. This is the most important part of the 
grid. For a full description of all valid values see colModel API

阵列,其描述了柱的参数。这是最重要的部分 网格。对于所有有效值的完整说明,请参见colModel API。
empty array No
colNames array An array in which we place the names of the columns. This is the text that appears in the 
head of the grid (header layer). The names are separated with commas. Note that the number 
of elements in this array should be equal of the number elements in the colModel 
array. This option will be deprecated. To set the text in header use the label 
property in colModel 

一个数组中,我们将列的名称。这是出现在文本 的网格(头层)的头部。名以逗号分隔。请注意,数字 此数组中的元素应等于中相应的数目的元件 colModel 阵列。此选项将被弃用。在头设置文本使用标签 物业colModel
empty No
data array An array that stores the local data passed to the grid. You can directly point to this variable 
in case you want to load an array data. See array data. It 
can replace the addRowData method which is slow on relative big data 

存储传递给电网的本地数据的数组。您可以直接指向这个变量 的情况下,你要加载的阵列数据。见阵列数据。它 可以替代addRowData方法,它是相对大数据慢
empty array Yes
datastr string The string of data when datatype parameter is set to xmlstring or jsonstring

数据串时的数据类型参数被设置为的xmlString 或jsonstring。
null Yes
datatype string Defines in what format to expect the data that fills the grid. Valid options are xml 
(we expect data in xml format), xmlstring (we expect xml data as string), json 
(we expect data in JSON format), jsonstring (we expect JSON data as a string), 
local or clientSide (we expect data defined at client side (array data) 
data option can be used), script (we expect data as javascript), 
function (custom defined function for retrieving data), JSONP (we expect 
a data from a remoute server ). See Retrieving Data
It is important to note that if this option is a function you should define how to retrieve 
a data - i.e grid expect from this function to fill the grid (you can use by example 
addJSONData) 

定义以何种格式的期望,填补了网格中的数据。有效选项是XML (我们预计在XML格式的数据),了XmlString(我们预计XML数据作为字符串), JSON (我们预计JSON格式的数据),jsonstring(我们预计JSON数据作为一个字符串), 本地或客户方(我们预计在客户端侧(阵列数据)定义的数据 一个数据选项可用于),脚本(我们预期数据如JavaScript), 函数(用于检索数据的自定义定义的函数),JSONP(我们预计 从remoute服务器的数据)。见检索数据。 需要注意的是,如果这个选项是一个函数,你应该定义如何检索是很重要的 数据-即网格从这个函数期望填补了网格(可以通过例如使用 addJSONData)
xml Yes
deepempty boolean This option should be set to true if an event or a plugin is attached to the table 
cell. The option uses jQuery empty for the row and all its children elements. This of 
course has speed overhead, but prevents memory leaks. This option should be set to true 
if a sortable rows and/or columns are activated. 

此选项应设置为真,如果一个事件或者一个插件连接到表格 单元格。该选件使用jQuery的空该行及其所有子元素。这的 课程有加快的开销,但可以防止内存泄漏。此选项应设置为真 ,如果排序行和/或列被激活。
false Yes
delOptions object The parameter stores the delete options (parameters) in navigator see navigator 
if the option storeNavOptions is set to true and navGrid 
method is called 

该参数存储在导航器中删除选项(参数)见导航 如果选项storeNavOptions设置为true和navGrid 方法被调用
empty No
deselectAfterSort boolean Applicable only when datatype : local is used. Deselects currently selected row(s) 
when a sort is applied. If set to false the selected rows remain instead of sorting. 

适用只有当数据类型:本地使用。取消选择当前所选行(多个) 时排序被应用。如果设置为false选定行保持,而不是排序。
true Yes
direction string Determines the direction of text in the grid. The default is ltr (Left To Right). 
When set to rtl (Right To Left) the grid automatically changes the direction 
of the text. It is important to note that in one page we can have two (or more) grids 
where the one can have direction ltr while the other can have direction rtl
Not all browsers support fully rtl. If a problem is encountered, please notify 
Guriddo support 

确定在网格文本的方向。默认为LTR(从左到右)。 当设置为RTL(从右到左)电网自动改变方向 的文字。需要注意的是,在一个页面,我们可以有两个(或更多)网格是非常重要的 ,其中一个可以有方向LTR,而其他可以有方向 RTL。 并非所有的浏览器都支持完全的RTL。如果遇到问题,请及时通知 Guriddo支持
ltr No
editOptions object The parameter stores the edit options (parameters) in navigator see navigator 
if the option storeNavOptions is set to true and navGrid 
method is called 

该参数存储在导航器中编辑选项(参数)见导航 如果选项storeNavOptions设置为true和navGrid 方法被调用
empty No
editurl string Defines the url for inline and form editing. May be set to clientArray to manually 
post data to server, see Editing

定义内联和表单编辑的URL。可以设置为clientArray手动 上传数据到服务器,请参阅编辑。
null Yes
emptyrecords string The string to display when the returned (or the current) number of records in the grid is 
zero. This option is valid only if viewrecords option is set to true
The default value depend from the language used in the current grid. 

来显示字符串时的返回(或电流)在网格的记录数是 零。此选项仅对如果viewrecords选项设置为真。 默认值取决于在当前电网使用的语言。
  Yes
ExpandColClick boolean When true, the tree grid is expanded and/or collapsed 
when we click anywhere on the text in the expanded column. In this case it is not necessary 
to click exactly on the expand/collapse icon. 

当真正的树网格扩展和/或倒塌 时,我们在任何地方点击在扩展列中的文本。在这种情况下,没有必要 点击准确的展开/折叠图标。
true No
ExpandColumn string Indicates which column (name property from colModel) should be used to 
expand the tree grid. If not set the first one is used. Valid only when the treeGrid 
option is set to true

表明哪个列(名物业colModel)应该用于 展开树网格。如果未设置使用的第一个。只有当有效的TreeGrid 选项设置为真。
null No
footerrow boolean If set to true this will place a footer table with one row below the gird records 
and above the pager. The number of columns equal those specified in colModel 

如果设置为真,这将放置一个页脚表下方的网格记录一行 和寻呼机以上。列数等于在那些指定colModel
false No
forceFit boolean If set to true, and a column's width is changed, the adjacent column (to the right) 
will resize so that the overall grid width is maintained (e.g., reducing the width of 
column 2 by 30px will increase the size of column 3 by 30px). In this case there is no 
horizontal scroll bar. Note: This option is not compatible with shrinkToFit 
option - i.e if shrinkToFit is set to false, forceFit is ignored. 

如果设置为真,并且列的宽度被改变时,相邻的列(在右侧) 将调整使整体网格宽度被保持(例如,减少的宽度 由30像素列2将由30PX增加柱3的尺寸)。在这种情况下,没有 水平滚动条。注意:此选项不兼容shrinkToFit 选项-如果即shrinkToFit设置为false, forceFit被忽略。
false No
frozenColumns boolean Read-only parameter. If this parameter is true it means that the frozen columns method is 
applied to the grid. 

只读参数。如果这个参数是事实,就意味着冻结的列方法 应用到电网。
false No
gridstate string Determines the current state of the grid (i.e. when used with hiddengridhidegrid 
and caption options). Can have either of two states: visible or hidden
This is only readonly option. 

确定网格的当前状态(即当用于hiddengrid,hidegrid 和字幕选项)。可以有两种状态:可见或 隐藏。 这仅仅是只读的选择。
visible No
gridview boolean In the previous versions of jqGrid (<= 3.4.X), reading a relatively large data set (number 

of rows >= 100 ) caused speed problems. The reason for this was that as every 
cell 
was inserted into the grid we applied about 5 to 6 jQuery calls to it. Now 
this problem 
is resolved; we now insert the entry row at once with a jQuery append. 
The result is 
impressive - about 3 to 5 times faster. What will be the result if 
we insert all the 
data at once? Yes, this can be done with a help of gridview 
option. The result 
is a grid that is 5 to 10 times faster compared to versions <= 
3.4.X. This option 
have some limitations - we can not use aterInsertRow event. To 
use this event set the 
gridview option to false. 

在以前的版本的jqGrid(的<(= 3.4.X),读取相对大的数据集数 = 100的行>)引起的速度的问题。这样做的原因是,因为每个 细胞 插入到电网,我们应用约5至6 jQuery的调用它。现在 这个问题 得到解决; 我们现在有一个jQuery追加插入入口排一次。 其结果是 令人印象深刻-大约快3到5倍。会有什么结果,如果 我们插入的所有 数据在一次?是的,这可以用的帮助下完成的gridview的 选项。其结果 是网格相比版本即快5至10倍<= 3.4.X. 该选项 有一定的局限性-我们不能使用aterInsertRow事件。要 使用此事件的设置 gridview的选项设置为false。
true Yes
groupHeader object Read-only parameter which contain information about Header grouping 

只读参数包含有关信息标题分组
empty No
grouping boolean Enables grouping in grid. Please refer to the Grouping

启用网格分组。请参阅分组。
false Yes
groupingView object Holds the definitions for grouping See Grouping

适用于分组见的定义分组。
  Yes
headertitles boolean If the option is set to true the title attribute with text from the label property 
of colModel is added to the column headers - i.e if pointed with the mouse on the column 
header the header text display as title. 

如果选项设置为真 title属性与标签属性文本 colModel加入到列标题-即如果与塔上的鼠标指着 头的标题文字显示为标题。
false No
height mixed The height of the grid. Can be set as number ( pixels) or as percentage (only 100% is acceped) 
or value of auto is acceptable. In the last two cases (100% or auto) the vertical 
scrollbar does not appear. To change the height dynamically use the method setGridHeight 

网格的高度。可以被设置为数量(像素)或为百分比(仅100%acceped) 或的值自动是可接受的。在后两种情况(100%或自动)垂直 滚动条不会出现。要改变高度动态的使用方法 setGridHeight
150 No.
hiddengrid boolean If set to true the grid is initially is hidden. The data is not loaded (no request 
is sent) and only the caption layer is shown. When the show/hide button is clicked for 
the first time to show grid, the request is sent to the server, the data is loaded, and 
grid is shown. From this point we have a regular grid. This option has effect only if 
the caption property is not empty and the hidegrid property (see below) 
is set to true

如果设置为真格最初是隐藏的。数据没有被加载(没有请求 被发送),并且仅示出了字幕层。当点击用于显示/隐藏按钮 的第一次显示的网格,该请求被发送到服务器,数据被加载,并且 网格被示出。从这一点上,我们有一个规则的网格。此选项仅影响 该标题属性不为空和hidegrid 财产(见下文) 设置为真。
false No
hidegrid boolean Enables or disables the show/hide grid button, which appears on the right side of the caption 
layer. Takes effect only if the caption property is not an empty string. 

启用或禁用的显示/隐藏网格按钮,这出现在标题的右侧 层。只有当该效果标题属性不是空字符串。
true No
hoverrows boolean When set to false the effect of mouse hovering over the grid data rows is disabled. 

当设置为假鼠标悬停的效果在网格数据行被禁用。
true Yes
idPrefix string When set, this string is added as prefix to the id of every grid row when it is built. This 
option is usefull if a two or more grids are available and there is a possibility to 
have equal id and equal grid names. 

设置后,当它是建立在这个字符串添加前缀到每个网格行的ID。这 如果两个或两个以上电网可用,有可能到选项是有用的 有着相同的ID和平等网名。
empty Yes
ignoreCase boolean By default the local searching is case-sensitive. To make the local search and sorting not 
case-insensitive set this options to true 

默认情况下,本地搜索是区分大小写的。为了使本地搜索和排序不 区分大小写的这组选项真
false Yes
inlineData empty object object used to add additional content (again with the edited row) to the data posted to the 
server when we are in inline editing. See Inline editing
This is a user defined object when there is a need to post additional data to the server. 

Object用于(与编辑的行再次)添加额外的内容发布到数据 服务器,当我们在联编辑。见在线编辑。 这是一个用户定义的对象时需要发布的附加数据到服务器。
[] Yes
inlineNav boolean Read-only parameter - determines if the inline navigator (inlineNav method) is called for 
this grid instance - true or not - false 

只读参数-确定是否内嵌导航器(inlineNav法)呼吁 该网格实例-真还是假-假
false No
jsonReader array An object which describes the structure of the expected json data. For a full description 
and default setting, see Retrieving Data JSON Data 

其描述预期JSON的数据的结构的对象。如需完整的描述 和默认设置,请参阅检索数据JSON数据
  No
keyName string Contain the name which is supposed to be used as index (unique id in grid row) when read 
the data and build the grid rows. The name is get from the key property in colModel. 
If the key property is not set this option is false. 

阅读时包含这是应该(在网格行唯一ID)用作指标名称 的数据,并建立网格行。这个名字是从一开始键在colModel财产。 如果未设置关键属性此选项是错误的。
false No
lastpage integer Gives the total number of pages returned from the request. If you use a function as datatype, 
jqGrid('setGridParam',[lastpage: your_number]); can be used to specify the 
max pages in the pager. 

给出了从请求返回的总页数。如果您使用的功能数据类型, jqGrid('setGridParam',[lastpage: your_number]);可以用来指定 在寻呼机最多的网页。
0 No
lastsort integer Read-only property. Gives the index of last sorted column beginning from 0. 

只读属性。最后给出了排序列的从0开始的索引。
0 No
loadonce boolean If this flag is set to true, the grid loads the data from the server only once (using 
the appropriate datatype). After the first request, the datatype parameter is automatically 
changed to local and all further manipulations are done on the client side. 
The data parameter is filled with the response data from the server. 

如果这个标志被设置为真,电网加载从服务器中只有一次的数据(使用 适当的数据类型)。第一个请求后,数据类型参数将自动 更改为本地以及所有操作都在客户端完成。 数据参数被填充来自服务器的响应数据。
false No
loadtext string The text which appears in progress indicator (when enabled) when requesting and sorting data. 
This parameter is located in language file. See the default property of the regional 
array. 

请求和对数据进行排序时(启用时)出现在进度指示器的文本。 此参数位于语言文件。见区域的默认属性 阵列。
  No
loadui string This option controls what to do when an ajax operation is in progress. 
disable 
- disables the jqGrid progress indicator. This way you can use your own indicator. 
enable 
(default) - shows the text set in the loadtext property in the center of the 
grid. 
block - displays the text set in the loadtext property and blocks 
all actions in the grid until the ajax request completes. Note that this disables paging, 
sorting and all actions on toolbar, if any.
The method progressBar 
controll this behaviour. 

该选项控制当一个Ajax操作过程中该怎么做。 禁用 -禁用的jqGrid进度指示器。这样,您就可以使用自己的指标。 启用 (默认值) -表示在设置文本loadtext财产在中心 网格。 块 -显示在loadtext属性和块设置文本 网格中的所有动作,直到所述AJAX请求完成。请注意,这将禁用分页, 排序,如果任何工具栏上的所有操作。 该方法 进度 控制研究此行为。
enable Yes
mtype string Defines the type of ajax request to make ('POST' or 'GET') 

定义AJAX请求的类型,使(“POST”或“GET”)
GET  
minColWidth integer Defines the minimal width of the column when re-sizing. 

定义重新调整大小时的列的最小宽度。
33 Yes
multiboxonly boolean This option works only when the multiselect option is set to true (see 
below). When multiselect is set to true, clicking anywhere on a row 
selects that row; when multiboxonly is also set to true, the multiselection 
is done only when the checkbox is clicked. Clicking in any other row (suppose the checkbox 
is not clicked) deselects all rows and selects the current row. See 
Multiselection 

只有当这个选项的多选选项设置为真(见 下文)。当多选设置为真,点击一个行的任意位置 选择该行; 当multiboxonly也被设置为真,多选 点击复选框时才完成。点击任何其他行(假设的复选框 未被点击)取消选择所有的行,并且选择当前行。见 多选
false Yes
multikey string This parameter makes sense only when the multiselect option (see below) is set to 
true. Defines the key which should be pressed when we make multiselection. The 
possible values are: shiftKey - the user should press Shift Key, altKey 
- the user should press Alt Key, and ctrlKey - the user should press Ctrl Key. 
See Multiselection 

此参数只有在感觉多选选项(见下文)设置为 真。定义当我们做多项选择应按下的键。在 可能的值是:Shift键, -用户应该按下Shift键,方altKey -用户应该按Alt键,中ctrlKey -用户应该按Ctrl键。 见多选
empty Yes
multimail boolean If this options is set to true and the multiselect is on, the selection is like Yahoo and 
Google mail. Multiselection is done so that the multiboxonly parameter is set to true 
with additional properties. See Multiselection 

如果这个选项被设置为true,多选是,选择像雅虎和 谷歌邮件。从而使multiboxonly参数设置为true,多选做是 具有附加属性。见多选
false Yes
multiselect boolean If this flag is set to true a multi selection of rows is enabled. A new column at 
left side containing checkboxes is added. Can be used with any datatype option. See options 
selarrrow which contain the selected rows. See Multiselection 

如果这个标志被设置为真行的多选择启用。在一个新列 包含复选框左侧被添加。可与任何数据类型选项一起使用。见选项 selarrrow包含所选行。见多选
false No
multiselectWidth integer Determines the width of the checkbox column created when the multiselect option 
is enabled. 

确定时创建的复选框列的宽度多选选项 启用。
30 No
multiSort boolean If set to true enables the multisorting - sort on more than one field. The options work if 
the datatype is local too. In case when the data is obtained from the server the sidx 
parameter contain the order clause. It is a comma separated string in format field1 asc, 
field2 desc ..., fieldN. Note that the last field does not have asc or desc. It should 
be obtained from sord parameter. When the option is true the behavior is as 
follow. The first click of the header field sort the field depending on the firstsortoption 
parameter in colModel or sortorder grid parameter. The next click sort it in reverse 
order. The third click removes the sorting from this field. 

如果设置为true,则启用multisorting -排序上的多个领域。如果该选项的作用 的数据类型是本地的了。在当从服务器获得的数据的情况下 SIDX 参数包含的顺序子句。它是在格式字段1 ASC逗号分隔字符串, 场2递减...字段N。需要注意的是最后一个字段没有ASC或DESC。应该 从获得SORD参数。当选项是正确的行为是为 后续。头场的第一次点击排序字段取决于firstsortoption 在colModel参数或排序顺序电网参数。反向接下来点击它的排序 顺序。第三次单击移除此领域的排序。
false Yes
navButtons array The parameter stores all the custom buttons created in navigator see navigator 
if the option storeNavOptions is set to true and navButtonAdd 
method is called 

在导航创建的参数存储所有的自定义按钮,看到导航仪 如果选项storeNavOptions设置为true和navButtonAdd 方法被调用
empty No
navGrid boolean Readonly parameter. determines if the navGrid method is called for this grid instance - true or not - false 

只读参数。确定是否navGrid方法被调用为这个网格实例 - 真还是假 - 假
false No
navOptions object The parameter stores the navigator options in navigator if the option storeNavOptions 
is set to true and navGrid method is called 

该参数存储的导航选项导航如果选项storeNavOptions 设置为true和navGrid方法被调用
empty No
page integer Set the initial page number when we make the request.This parameter is passed to the url 
for use by the server routine retrieving the data. It also works when the datatype is 
local. 

设置初始页号,当我们做出request.This参数传递到URL 由服务器例行程序检索数据使用。当数据类型是它也可以 局部。
1 Yes
pager html id Defines the pager bar to navigate through the records. This must be a valid HTML element; 
in our example we gave the div the id of "pager", but any name is acceptable. Note that 
the navigation layer (the "pager" div) can be positioned anywhere you want, determined 
by your HTML; in our example we specified that the pager will appear after the body layer. 
The valid settings can be (in the context of our example) pager, #pager, jQuery('#pager'). We recommend to use the second one - #pager.
See Pager 
for more details and explanations. If the pager is empty string (default value) it will 
not appear. 

定义寻呼机条在记录中导航。这必须是一个有效的HTML元素; 在我们的例子中,我们给格“寻呼机”的ID,但任何名称是可以接受的。需要注意的是 ,导航层(“寻呼机”格)可以在任何地方放置你想要的,决定 你的HTML; 在我们的例子中,我们指定的寻呼机将在主体层后出现。 有效设置可以(在本例的情况下), 寻呼机,#pager,jQuery的(“#寻呼机”) 。我们推荐使用第二个- #pager。 见寻呼机 的更多细节和解释。如果寻呼机为空字符串(默认值),将 不会出现。
' ' No
pagerpos string Determines the position of the pager navigation buttons and records select box in the grid. 
By default the pager element when created is divided in 3 parts (one part for pager navigator 
buttons, one part for navigator buttons and one part for record information - see recordpos). 
Possible values are left, center, right. Note that when changing the position of this 
parameter it is necessary to change the position of the other elements. See Navigator options 
and the parameter recordpos below. 

确定寻呼机导航按钮的位置,并在网格记录选择框。 通过创建时在3份(寻呼机导航一个部分划分默认寻呼机元件 按钮,用于导航按钮一个部分和用于记录信息的一个部分-见recordpos)。 可能的值是左,中,右。需要注意的是改变这个位置时, 参数是需要改变其他元素的位置。见导航选项 和参数recordpos 下方。
center No
pgbuttons boolean Determines if the Pager buttons should be shown if pager is available. Also valid only if 
pager is set correctly. The buttons are placed in the pager bar. 

确定是否应显示的导航按钮,如果寻呼机可用。只有当还有效 寻呼机的设置是否正确。的按钮被放置在该寻呼机栏。
true No
pginput boolean Determines if the input box, where the user can change the number of the requested page, 
should be available. The input box appears in the pager bar between the pager buttons. 

确定是否输入框,用户可以更改请求的页面的数量, 应该可用。输入框显示在寻呼机的按钮之间的寻呼机巴。
true No
pgtext string Show information about current page status. We use for this purpose a template string. The 
default English string is: Page [0] of [1]. The first value '[0]' is the current 
loaded page. The second value '[1]' is the total number of pages. Default depend from 
the used language file 

显示有关当前页面的状态信息。我们为此目的而使用的模板字符串。该 默认英文字符串是:页[0] [1] 。第一值“[0]”是当前 加载的页面。第二值“[1]”是的总页数。默认值取决于从 所使用的语言文件
lang file Yes
prmNames array The default value of this property is:
[page:"page",rows:"rows", sort:"sidx",
order:"sord", search:"_search", nd:"nd", id:"id",
oper:"oper", editoper:"edit", 
addoper:"add", deloper:"del", subgridid:"id", npage:null, totalrows:"totalrows"]
.
This customizes names of the fields sent to the server on a POST/GET request. All of the values 
correspond to some options of the grid. For example, with this setting, you can change 
the sort order element from sidx to mysort by setting prmNames: [sort: "mysort"]
The string that will be posted to the server will then be 
myurl.php?page=1&rows=10&mysort=myindex&sord=asc
rather than myurl.php?page=1&rows=10&sidx=myindex&sord=asc. So the 
value of the column on which to sort upon can be obtained by looking at $POST['mysort'] 
in PHP by example. When some parameter is set to null, it will be not sent to the server. 
For example if we set prmNames: [nd:null] the nd parameter will not 
be sent to the server. For npage option see the scroll option. These 
options have the following meaning and default values:
page: the requested 
page (default value page), 
rows: the number of rows requested (default 
value rows), 
sort: the sorting column (default value sidx), 

order: the sort order (default value sord), 
search
the search indicator (default value _search), 
nd: the time passed 
to the request (for IE browsers not to cache the request) (default value nd), 

id: the name of the id when posting data in editing modules (default value 
id), 
oper: the operation parameter passed to the server (default 
value oper), 
editoper: the name of operation when the data is posted 
in edit mode (default value edit), 
addoper: the name of operation 
when the data is posted in add mode (default value add), 
deloper
the name of operation when the data is posted in delete mode (default value del), 

totalrows: the number of the total rows to be obtained from server - see 
rowTotal (default value totalrows), 
subgridid: the name 
passed when we click to load data in the subgrid (default value id). 

此属性的默认值是:。这种定制发送到服务器上的POST字段的名称/ GET请求。所有的值 对应于电网的一些选项。例如,通过此设置, 您可以更改排列顺序元素从SIDX到mysort通过设置prmNames:排序:“mysort”] 。 然后将被发送到服务器的字符串会myurl.php?页= 1&行= 10&mysort = myindex&SORD = ASC, 而不是myurl.php?页= 1&行= 10&SIDX = myindex&SORD =递增。因此,在其列的值进行排序时可以通过观察获得通过例如PHP。当一些参数设置为空,将不会发送到服务器。 例如,如果我们设置prmNames:[ND:空]的第二参数将不会被发送到服务器。对于NPAGE选项看到滚动 选项。这些选项具有以下含义和默认值:页:请求的页面(默认值页) ,行:请求行(默认的数量值的行),排序:排序列(默认值SIDX),顺序:排序顺序(默认值SORD)搜索: 搜索指示器(默认值_search), ND:过去的时间的请求(IE浏览器不缓存请求)(默认值 ND),ID发布当ID的名称:在编辑模块(缺省值数据 ID),OPER传递给服务器(缺省操作参数: 值OPER), editoper:当数据被发布操作的名称在编辑模式(默认值编辑),addoper:所述的名操作当数据被张贴在附加模式(默认值加载), deloper:当数据被张贴在删除模式(默认值操作的名称德尔),totalrows:从服务器获得的总的行数-见 rowTotal(默认值totalrows), subgridid:名称 过去了,当我们 点击亚格(默认值加载数据ID)。
  Yes
postData object This array is appended directly to the url. This is an object and can be used this way: [name1:value1...]
This is a user defined object which extends the object passed to the data parameter in 
ajax request. See API methods for manipulation. 

这个阵列被直接附加到URL。这是一个对象,并且可以使用这种方式:[NAME1:VALUE1 ...] 。 这是一个用户定义的对象,其延伸传递到在所述数据参数的对象 的AJAX请求。请参阅操作API的方法。
empty Yes
reccount integer Read-only property. Determines the exact number of rows in the grid. Do not confuse this 
with records parameter. Although in many cases they may be equal, there are 
cases where they are not. For example, if you define rowNum (requested records 
per page) to be 15, but the request to the server returns 20 records, the
records parameter will be 20, but the reccount parameter will be 15
(the grid you will 
have 15 records and not 20). 

只读属性。确定网格中的行的确切数目。不要混淆这 与记录的参数。虽然在很多情况下,它们可以相同,也有 如果他们不是案件。例如,如果你定义的rowNum(请求的记录 每页)为15,但请求到服务器返回20条记录,该 记录参数将是20,但RECCOUNT参数将是15 (网格,您将 有15条记录,并不是20)。
0 No
recordpos string Determines the position of the record information in the pager ( See recordtext option). 
Can be leftcenterright. If the default value is changed, 
be a sure that the other placement in 3 part pager are set in appropriate way. 

决定在寻呼机的记录信息的位置(见recordtext选项)。 可左,中心,右。如果默认值被改变, 是一个肯定的是,在3部分传呼机其他位置以适当的方式设置。
right No
records integer Readonly property. Gives the number of records returned as a result of a query to the server. 

只读属性。给出了返回的查询服务器的结果记录数。
none No
recordtext string Text that can be shown in the pager. This option is valid if viewrecords option 
is set to true. This text appears only if the total number of records is greater 
then zero. The default string in case of english langauage is as following: View [0] - [1] of [2]
[0] is the start position of the records depending on page number and number of requested 
records, [1] is the end position and [2] - total records returned from the server. 

文本可在寻呼机上显示。如果此选项是有效viewrecords选项 设置为真。本文只出现如果记录的总数越大 则为零。在英语langauage的情况下的缺省字符串是如下: 查看[0] - [1] [2] 。 [0]是取决于页号的记录的开始位置和所请求的数量 的记录,[1]是结束位置和[2] -的总记录从服务器返回。
lang file Yes
regional string Two letter code which correspond to the code in grid.locale-xx.js. To load a language file 
different from English (default) in the grid change this parameter with the appropriate 
code. Note that the language file should be loaded. See setRegional method and 
Language Guide

两个字母的代码对应于grid.locale-xx.js的代码。要加载的语言文件 中网格从英语(默认)不同的改变与此相应的参数 代码。请注意语言文件应该被加载。见setRegional方法和 语言指南。
en Yes
remapColumns array Array which contain the order of the columns as they apper in the grid. Initially the first 
position correspond to the first column and etc. - by example [0,1,2,3] in case we have 
4 columns defined in colModel. After reordering of columns ( see Column reorder 
) the array can look like this: [1,0,3,2]. This mean the the first column(0) is moved 
to the second position(1) and the third column(2) is moved to four position(3). Using 
the method remapColumns we can dynamically remap the initial order of 
the columns in the grid. After this remapping the array remapColumns is set 
to the those in the method. 

阵列包含列的顺序,因为它们在电网冲击片雷管。最初,第一 位置对应于第一列和等-由例如[0,1,2,3]的情况下,我们具有 在colModel定义4列。列的重新排序后(见列重新排序 )的阵列可以是这样的:[1,0,3,2]。这意味着所述的第一列(0)移动 到第二位置(1)和第三列(2)被移动到四个位置(3)。使用 该方法remapColumns我们可以动态重新映射的初始顺序 在网格的列。在此之后重新映射阵列remapColumns 被设置 到该方法中的那些。
empty Yes
resizeclass string Assigns a class to columns that are re-sizable so that we can show a re-size handle only 
for ones that are resizable. 

指定一个类是可调整大小,这样就可以显示一个调整大小手柄仅列 于那些可以调整大小。
empty No
responsive boolean If set to true the grid is re sized automatically to its parent container when the 
device is rotated or when the windows width is changed. Another useful feature is auto 
calculating the the space of the navGrid buttons – if the space does not fit the grid 
width drop down menu button is created, where all actions are inserted. 

如果设置为真网格是重新自动调整大小到其父容器当 装置旋转时,或者当窗口宽度被改变。另一个有用的功能是自动 计算的navGrid按钮的空间-如果空间不适合网格 宽度下拉菜单按钮被创建,所有的动作都插入。
false No
restoreCellonFail boolean Determine if the cell should be set or restored to its initial state on fail. Use this option 
if validation module is performed. The option is valid only in cell editing module. For 
More information see Cell editing

确定小区应设置或还原到失败的初始状态。使用此选项 ,如果执行验证模块。该选项仅在电池编辑模块有效。有关 更多信息,请参阅单元格编辑。
true Yes
rowList array An array to construct a select box element in the pager in which we can change the number 
of the visible rows. When changed during the execution, the values of this parameter 
replaces the rowNum parameter that is passed to the url. If the array is empty, 
this element does not appear in the pager. Typically you can set this like [10,20,30]
If the rowNum parameter is set to 30 then the selected value in the select box 
is 30. The rowList parameter can have display value as string too. The select list can 
be configured with a name value pair where the value and display text will be separated 
with colon ":". By example the following ["10:10", "20:20", "30:30", "-1:All"] will provide 
display items in select list 10,20,30,All and when All is selected the value of -1 will 
be posted. 

阵列构造中,使我们可以改变数字寻呼机一个选择框元件 的可见的行。当执行过程中变了,这个参数的值 替换的rowNum传递给url参数。如果数组是空的, 这个元素不会出现在寻呼机。通常,您可以设置此类似 [10,20,30] 。 如果的rowNum参数被设置为30,然后在选择框选择的值 是30。rowList参数可以具有显示值作为字符串太。选择列表可以 与名称值对,其中的值,并显示文本将被分离被配置 用冒号“:”。通过例如以下的[“10:10”,“20:20”,“30:30”,“-1:所有”]将提供 的所有被选中时的显示项在选择列表10,20,30,所有与值-1将 被公布。
empty No
rownumbers boolean If this option is set to true, a new column at left of the grid is added. The purpose 
of this column is to count the number of available rows, beginning from 1. In this case 
colModel is extended automatically with new element with the name rn
Note: It is not recommend to use the name rn in the colModel

如果此选项设置为真,在网格的左侧一个新列被添加。目的 此列的是计算可用的行数,从1开始。在这种情况下 colModel与名为新元素自动延长RN。 注意:这是不建议使用的名称氡在colModel。
false No
rowNum integer Sets how many records we want to view in the grid. This parameter is passed to the url (and 
in local data too) for use by the server routine retrieving the data. Note that if you 
set this parameter to 10 (i.e. retrieve 10 records) and your server return 15 then only 
10 records will be loaded. 

设置我们要多少条记录,查看在网格中。这个参数传递给URL(和 本地数据太)为服务器程序检索数据使用。请注意,如果您 将此参数设置为10(即10个检索记录)和服务器返回15则只有 10个记录将被载入。
20 Yes
rowTotal integer When set this parameter can instruct the server to load the total number of rows needed to 
work on. Note that rowNum determines the total records displayed in the grid, 
while rowTotal determines the total number of rows on which we can operate. 
When this parameter is set, we send an additional parameter to the server named totalrows 
(See prmNames option). You can check for this parameter, and if it is available you can replace the rows parameter with this one. Mostly
this parameter can be combined 
with loadonce parameter set to true

当设置这个参数可以指示服务器负载所需的行总数 努力。注意的rowNum决定在网格中显示的总记录, 而rowTotal决定了我们可以操作行的总数。 当此参数设置,我们发送一个额外的参数给服务器命名totalrows (见prmNames选项)。您可以检查此参数,如果它是可用可更换行与这一个参数。晴 此参数可以组合 使用loadonce设置为参数真。
null Yes
rownumWidth integer Determines the width of the row number column if rownumbers option is set to true

如果确定行号列的宽度rownumbers选项设置为真。
35 No
savedRow array This is a readonly property and is used in inline and cell editing modules to store the data, 
before editing the row or cell. See Cell Editing 
and Inline Editing. This array stores the original 
values before editing the cell or row and is used in case the user press Esc to restore 
the original values of the edited row or cell. 

这是一个只读属性,并以串联和细胞编辑模块,用于存储数据, 编辑行或单元格之前。见细胞编辑 和在线编辑。该数组存储原始 编辑单元格或行之前的值和在情况下,使用用户按Esc键恢复 所编辑的行或单元格的初始值。
empty No
search boolean Read-only parameter which identify if we perform a search. The parameter is set to true if 
we use one of the search modules and activate the search (server side or local). The 
parameter is set to false when the search is reset. 

只读其中确定,如果我们执行搜索参数。如果该参数设置为true ,我们使用搜索模块之一,并启动搜索(服务器端或本地)。在 当搜索重置参数设置为false。
false No
searchOptions object The parameter stores the search options (parameters) in navigator see navigator 
if the option storeNavOptions is set to true and navGrid 
method is called 

该参数存储在导航器中的搜索选项(参数)见导航 如果选项storeNavOptions设置为true和navGrid 方法被调用
empty No
scroll mixed Creates dynamic (virtual) scrolling grids. When enabled, the pager buttons and select box 
are disabled and we can use the vertical scrollbar to load data. When set to true 
the grid will always hold all the items from the start through to the latest point ever 
visited. When scroll is set to an integer value (Mostly by example 1), the grid 
will just hold the visible lines. This allow us to load the data in portions without 
caring about memory leaks. In addition to this we have an optional extension to the server 
protocol: npage (see prmNames array). If you set the npage 
option in prmNames, then the grid will sometimes request more than one page 
at a time; if not, it will just perform multiple GET requests.Note that this option is 
not compatible when a grid parameter height if set to auto or 100%

创建动态的(虚拟)滚动网格。当启用时,导航按钮和选择框 被禁用,我们可以使用垂直滚动条加载数据。当设置为真 格将始终贯穿于以往的最新点举行从一开始所有项目 参观。当滚动被设置为整数值(大多是由实施例1),网格 将只保持可见线。这使我们能够在装载部分中的数据,而无需 关心内存泄漏。除了这一点,我们有一个可选扩展到服务器 协议:NPAGE(见prmNames数组)。如果设置了NPAGE 在选项prmNames,那么,网格有时会要求超过一页 在一个时间; 如果不是,它只是执行多次GET requests.Note这个选项是 当电网参数不兼容的高度 ,如果设置为自动或100% 。
false No
scrollMaxBuffer integer This parameter set the maximum rows the grid can load when a scroll option is set to 1. This 
allow to control the buffer of the loaded rows. This parameter is recommended to be used 
when a scroll is set to 1 and the datatype is local. The recommended setting is a value 
greater than the rowNum parameter. If the value is little then this parameter it is set 
automatically to be equal to rowNum parameter. 

该参数设定时的滚动选项被设置为1。此网格可以加载最大行数 允许,以控制装载的行缓冲器中。建议此参数来被使用 时,滚动被设置为1,并且数据类型是本地的。推荐的设置为一个值 比的rowNum参数越大。如果该值小则该参数设置 自动为等于的rowNum参数。
0 Yes
scrollLeftOffset percent Determines the left offset of the box which appear when virtual scroll is enabled and scrollPopUp 
parameter is set to true. The information does appear when we use the mouse to scroll 
through the pages. The value of 0% set the box to appear at upper left corner of the 
grid. See scrollPopUp and scrollTopOffset parameters. 

确定左侧时,虚拟滚动启用和scrollPopUp其出现在框的偏移 参数设置为true。当我们用鼠标滚动的信息确实出现 在页面中。0%的值设置的框显示在左上角 网格。见scrollPopUp和scrollTopOffset参数。
100% Yes
scrollOffset integer Determines the width of the vertical scrollbar. Since different browsers interpret this width 
differently (and it is difficult to calculate it in all browsers) this can be changed. 

确定垂直滚动条的宽度。由于不同的浏览器解释该宽度 不同(这是难以计算它在所有浏览器)这可以被改变。
18 No
scrollTopOffset integer Defines the top offset from the upper position of the scroll element. 

定义顶部从滚动元件的上部位置偏移。
0 Yes
scrollPopUp boolean Enables/disables popup with page information when virtual scrolling is on. When this is enabled 
the information box change its position relative to the position of the scroll element. 

启用/禁用弹出与网页信息时,虚拟滚轮上。启用此功能 的信息框位置相对其改变成滚动元件的位置。
false Yes
scrollTimeout integer This controls the timeout handler when scroll is set to 1. The value is set in milliseconds. 

这控制时,超时处理程序滚动被设置为1的值以毫秒为单位设定。
40 Yes
scrollrows boolean When enabled, selecting a row with setSelection scrolls the grid so that the selected 
row is visible. This is especially useful when we have a verticall scrolling grid and 
we use form editing with navigation buttons (next or previous row). On navigating to 
a hidden row, the grid scrolls so that the selected row becomes visible. 

当启用时,选择与行为setSelection滚动网格,以便选择 行可见。当我们有一个verticall滚动网格,这是非常有用的 ,我们使用带有导航按钮(一个或下一个行)的形式编辑。在导航到 一个隐藏的行,电网滚动,使所选行变得可见。
false Yes
selarrrow array This options is readonly. Gives the currently selected rows when multiselect is 
set to true. This is a one-dimensional array and the values in the array correspond 
to the selected id's in the grid. 

此选项是只读的。当给当前选择的行多选被 设置为真。这是一个一维阵列和阵列中的值对应 于所选择的ID的在网格中。
empty No
selrow string This option is read-only. It contains the id of the last selected row. If sorting or paging 
is performed, this options is set to null. 

此选项是只读的。它包含选择的最后一行的id。如果排序或分页 中进行,这个选项被设置为null。
null No
shrinkToFit boolean This option, if set, defines how the the width of the columns of the grid should be re-calculated, 
taking into consideration the width of the grid. If this value is true, and 
the width of the columns is also set, then every column is scaled in proportion to its 
width. For example, if we define two columns with widths 80 and 120 pixels, but want 
the grid to have a width of 300 pixels, then the columns will stretch to fit the entire 
grid, and the extra width assigned to them will depend on the width of the columns themselves 
and the extra width available. The re-calculation is done as follows: the first column 
gets the width (300(new width)/200(sum of all widths))80(first column width) = 120 pixels, 
and the second column gets the width (300(new width)/200(sum of all widths))
120(second 
column width) = 180 pixels. Now the widths of the columns sum up to 300 pixels, which 
is the width of the grid. If the value is false and the value in width option 
is set, then no re-sizing happens whatsoever. So in this example, if shrinkToFit 
is set to false, column one will have a width of 80 pixels, column two will have a width 
of 120 pixels and the grid will retain the width of 300 pixels. 

此选项,如果设置,定义了网格的列的宽度应重新计算, 考虑到电网的宽度。如果此值为真,并且 该列的宽度也被设置,然后每列被成比例地缩放其 宽度。例如,如果我们定义与宽度80和120个像素两列,但希望 的网格具有300个像素的宽度,则该列将被拉伸以适应整个 网格,和分配给它们的额外宽度将取决于宽度的列本身 和提供额外的宽度。重新计算如下进行:第一列 得到的宽度(300(新的宽度)/ 200(所有宽度的总和))80(第一列的宽度)= 120个像素, 和第二列得到的宽度(300(新的宽度)/所有宽度的200(和)) 120(第二 列的宽度)= 180个像素。现在列的宽度加起来为300个像素,这 是网格的宽度。如果该值是假的,并在值宽度 选项 设置,然后没有再发生大小无论如何。因此,在这个例子中,如果shrinkToFit 被设置为假,列中的一个将具有80个像素的宽度,列2将具有宽度 的120个像素和电网将保留的300个像素的宽度。
true No
sortable mixed When set to true, this option allows reordering columns by dragging and dropping 
them with the mouse. Since this option uses the jQuery UI sortable widget, be sure to 
load this widget and its related files in the HTML head tag of the page. Note: 
The colModel object also has a property called sortable, which specifies 
if the grid data can be sorted on a particular column or not. This option works when 
Bootstrap CSS is used. In this case the jQuery UI sortable widged should be loaded. The 
sortable option can be a object in which we can add (or overwrite) parameters that are 
available in the jQuery UI method. To do this a option property should be set. By example 
to change the jQuery UI sortable pareneter forcePlaceholderSize we should do:
$("#jqGrid").jqGrid([ ..., sortable: [ options: [forcePlaceholderSize : true ] ],...]);.
Actually when this option is on we call the build in method sortabColumns 

如果设置为真,此选项通过拖放允许重新排序的列 用鼠标它们。由于此选项使用jQuery UI的排序窗口小部件,一定要 加载这个小部件及其相关文件页面的HTML head标签。注: 该colModel对象也有一个叫做财产排序,其中规定 如果网格数据可以在特定的列或不进行排序。当这个选项 是用来引导CSS。在这种情况下,jQuery UI的排序widged应该被加载。该 排序选择可以是一个对象,其中我们可以添加(或覆盖),这些参数 在jQuery UI的方法可用。要做到这一点一个选项属性应该设置。举例 改变jQuery UI的排序pareneter forcePlaceholderSize 我们应该做的: $("#jqGrid").jqGrid([ ..., sortable: [ options: [forcePlaceholderSize : true ] ],...]);。 其实当这个选项是我们在方法中调用构建sortabColumns
false No
sortname string The column according to which the data is to be sorted when it is initially loaded from the 
server or local array. This parameter is appended to the url. If this value is set and 
the index (name) matches the name from colModel, then an icon indicating that the grid 
is sorted according to this column is added to the column header. This icon also indicates 
the sorting order - descending or ascending (see the parameter sortorder). Also 
see prmNames

根据该列中的数据是当它最初从加载到进行排序 服务器或本地阵列。此参数添加到URL。如果这个值被设置和 索引(名称)从colModel的名称匹配,则一个图标指示所述网格 是根据该列被添加到列标题排序。此图标还指示 排序顺序-降序或升序(见参数 排序顺序)。还 看到prmNames。
empty Yes
sortorder string The initial sorting order (ascending or descending) when we fetch data from the server or 
client array. This parameter is appended to the url - see prnNames. The two 
allowed values are - asc or desc

初始排序顺序(升序或降序),当我们从服务器获取或数据 客户端阵列。此参数添加到URL -见prnNames。这两个 允许值是- 递增或递减。
asc Yes
storeNavOptions boolean Store the navigator options in the grid options. The parameter is used in navGrid method 
(common navigator options) and if true the options are saved as grid parameters. This 
parameter is usefull if we want to know some parameter in the navigator, but the primary 
use of this parameter is when a loadState and restoreState methods are used. In this 
case it is recommend to set this option to true since restoring of navigator actions 
depend from grid option. 

存储在网格选项导航选项。该参数在navGrid方法中使用 (公共导航选项),并且如果真选项被保存为电网参数。此 参数是有用的,如果我们想知道在导航的一些参数,但主 当使用LoadState的和restoreState方法使用此参数是。在这种 情况下,建议将此选项设置为true,因为导航行动恢复 从网格选项依赖。
false No
styleUI string Defines the CSS framework used for the internal representation of the grid. For more information 
refer to CSS Framework Guide

定义用于电网的内部表示CSS框架。欲了解更多信息, 请参阅CSS框架指南。
jQueryUI No
subGrid boolean If set to true this enables using a sub-grid. If the subGrid option is 
enabled, an additional column at left side is added to the basic grid. This column contains 
expanded/collapsed icon (see subgrid property in StyleUI) which indicates that the user 
can click on it to expand the row. By default all rows are collapsed. See Subgrid 
for details 

如果设置为真这使得使用分格。如果次网格选项 启用,在左侧的附加列被添加到基本格式。此列包含 展开/折叠图标(见StyleUI亚格属性),这表明用户 可以点击它展开行。默认情况下,所有行崩溃。见次网格 的详细信息
false No
subGridOptions object A set of additional options for the subgrid. For more information and default values see 
Subgrid

一组为次网格的附加选项。欲了解更多信息和默认值看 亚格子。
  Yes
subGridModel array This property, which describes the model of the subgrid, has an effect only if the subGrid 
property is set to true. It is an array in which we describe the column model 
for the subgrid data. For more information see Subgrid

此属性,它描述了亚网格模型,只有当子网格效果 属性设置为真。它是在其中我们描述了列模型的阵列 的子网格数据。欲了解更多信息,请参阅亚格子。
empty No
subgridtype mixed Set the dataType of the ajax call to the server when make the subgrid request. Can be xml 
or json. Can be a function. If not set, get the datatype defined in the grid option datatype

使次网格请求时,将AJAX调用服务器的数据类型。可以是XML 或JSON。可以是函数。如果没有设置,让网格选项中定义的数据类型的数据类型。
null Yes
subGridUrl string This option has effect only if the subGrid option is set to true. This 
option points to the url from which we get the data for the subgrid. jqGrid adds the 
id of the row to this url as parameter. If there is a need to pass additional parameters, 
use the params option in subGridModel. See Subgrid 

此选项仅在效果子网格选项设置为真。此 选项指向URL从中我们得到的子网格中的数据。jqGrid的增加了 该行的ID给这个URL作为参数。如果有需要传递额外的参数, 使用PARAMS在选项subGridModel。见次网格
empty string Yes
subGridWidth integer Defines the width of the sub-grid column if subGrid is enabled. 

如果定义了分格列的宽度次网格被启用。
20 No
toolbar array This option defines the toolbar of the grid. This is an array with two elements in which 
the first element's value enables the toolbar and the second defines the position relative 
to the body layer (table data). Possible values are topbottom, and 
both. When we set it like toolbar: [true,"both"] two toolbar s are 
created -- one on the top of table data and the other at the bottom of the table data. 
When we have two toolbar s, then we create two elements (div). The id of the top bar 
is constructed by concatenating the string "t_" and the id of the grid, like "t_" + id_of_the_grid 
and the id of the bottom toolbar is constructed 
by concatenating the string "tb_" and the id of the grid, like "tb_" + id_of_the grid
In the case where only one 
toolbar is created, we have the id as "t_" + id_of_the_grid, independent of 
where this toolbar is located (top or bottom) 

此选项定义网格的工具栏。这与两个元素的数组,其中 所述第一元素的值使得能够在工具栏和第二限定相对的位置 到所述主体层(表数据)。可能的值是顶部,底部和 两个。当我们把它像工具栏:真正的“既”] 2个栏s的 创建-一个在表数据的顶部,而另一个在数据表的底部。 当我们有两个工具栏S,那么我们创建了两个元素(DIV)。最上面一栏的id 是通过将字符串“T_”和网格的ID,等构成“T_” + id_of_the_grid 和底部工具栏的id被构造 通过连接字符串“tb_”和电网的id像“tb_” + id_of_the格。 在其中仅一个的情况下 被创建工具栏,我们有id作为“T_” + id_of_the_grid,独立的 ,其中该工具栏的位置(顶部或底部)
[false,''] No
toppager boolean When enabled this option places a pager element at top of the grid, below the caption (if 
available). If another pager is defined, both can coexist and are kept in sync (except 
adding custom buttons in navigator). The id of the newly created pager is the combination 
grid_id + "_toppager". All the buttons which are connected to the 'bottom' pager 
are valid for the top pager. This means that if by example pginput is true it will display 
on the toppager too. 

如果启用该选项可以在格栅顶部放置一个寻呼机元素,标题下方(如果 可用)。如果另一个寻呼机被定义,既可以共存,并保持同步(除 在导航添加自定义按钮)。新创建的寻呼机的ID组合 grid_id +“_toppager”。所有这些都连接到“底部”寻呼机的按钮 是有效的顶部寻呼机。这意味着,如果通过例如pginput是真的,那将显示 在toppager了。
false No
totaltime integer Readonly parameter. It gives the loading time of the records - currently available only when 
we load xml,json or jsonp data. The measurement begins when the request is complete and 
ends when the last row is added. 

只读参数。它使记录的加载时间-目前市面上只有当 我们加载XML,JSON或JSONP数据。请求完成,并且当测量开始 时被添加的最后一行结束。
0 No
treedatatype mixed Gives the initial datatype when tree grid is enabled (see datatype option). Usually 
this should not be changed. During the reading process this option is equal to the datatype 
option. 

给人当树网格使能(见初始数据类型的数据类型选项)。通常 这不应该被改变。在读取过程中这个选项等于数据类型 选项。
null No
treeGrid boolean Enables (disables) the tree grid format. For more details see Tree Grid 

启用(禁用)树网格格式。欲了解更多详情,请参见树网格
false No
treeGridModel string Method used for the treeGrid. The value can be either nested or adjacency
See Tree Grid 

用于该方法的TreeGrid。该值可以是嵌套的或邻接。 见树网格
nested No
treeIcons array This array sets the icons used in the tree grid.The default values are set from styleUI property 
treegrid of the used CSS framework

该阵列设置在树grid.The默认值从styleUI属性设置中使用的图标 中使用的TreeGrid CSS框架。
  No
treeReader object Extends the colModel defined in the basic grid when treeGrid is set to true. The 
fields described here are appended to end of the colModel array and are hidden. 
This means that the data returned from the server should have values for these fields. 
For a full description of all valid values see Tree Grid

扩展colModel在基本网格定义时的TreeGrid设置为true。在 这里描述的字段被附加到的端colModel阵列和被隐藏。 这意味着,从服务器返回的数据应该对这些字段的值。 对于所有有效值的完整说明见树网格。
  No
tree_root_level numeric Defines the level from where the root element begins when treeGrid is enabled. 

定义从启用的TreeGrid当根元素开始的水平。
0 No
url string The url of the file that returns the data needed to populate the grid. May be set to clientArray 
to manually post data to server; see Editing

返回填充电网所需的数据文件的URL。可以设置为clientArray 手动上传数据到服务器; 看编辑。
null Yes
userData object This object contains custom information from the request. Can be used at any time. See 
Retrieving Data

这个对象包含从请求定制信息。可以在任何时间使用。见 检索数据。
empty No
userDataOnFooter boolean When set to true we directly place the user data array userData in the 
footer if the footerrow parameter is set to true. The rules are as 
follows: If the userData array contains a name which matches any name defined 
in colModel, then the value is placed in that column. If there are no such values 
nothing is placed. Note that if this option is used we use the current formatter options 
(if available) for that column. See footerData method 

当设置为真,我们直接将用户数据阵列用户数据在 页脚如果footerrow参数设置为真。该规则为 如下:如果用户数据数组包含它匹配定义的任何名称的名称 在colModel,则该值被放置在该列。如果没有这样的值 没有放置。请注意,如果使用此选项,我们使用当前的格式化选项, 该列(如果可用)。见footerData 方法
false Yes
viewOptions object The parameter stores the view options (parameters) in navigator see navigator 
if the option storeNavOptions is set to true and navGrid 
method is called 

参数存储在导航视图选项(参数)见导航 如果选项storeNavOptions被设置为真和navGrid 方法被称为
empty No
viewrecords boolean If true, jqGrid displays the beginning and ending record number in the grid, out 
of the total number of records in the query. This information is shown in the pager bar 
(bottom right by default)in this format: "View X to Y out of Z". If this value is true
there are other parameters that can be adjusted, including emptyrecords and 
recordtext

如果属实,jqGrid的显示开始和结束记录编号在网格中,走出 的查询记录的总数。这些信息显示在寻呼机酒吧 以这种格式(默认右下):“查看X到Y出的Z”。如果这个值是真实的, 也有可以调整其他参数,包括emptyrecords 和 recordtext。
false No
viewsortcols array The purpose of this parameter is to define a different look and behavior for the sorting 
icons (up/down arrows) that appear in the column headers. This parameter is an array 
with the following default options viewsortcols : [false,'vertical',true]. The 
first parameter determines if sorting icons should be visible on all the columns that 
have the sortable property set to true. Setting this value to true 
could be useful if you want to indicate to the user that (s)he can sort on that particular 
column. The default of false sets the icon to be visible only on the column on which 
that data has been last sorted. Setting this parameter to true causes all icons 
in all sortable columns to be visible. The second parameter determines how icons should 
be placed - vertical means that the sorting arrows are one under the other. 
'horizontal' means that the arrows should be next to one another. The third parameter 
determines the click functionality. If set to true the data is sorted if the 
user clicks anywhere in the column's header, not only the icons. If set to false the 
data is sorted only when the sorting icons in the headers are clicked. Important: 
If you are setting the third element to false, make sure that you set the first element 
to true; if you don't, the icons will not be visible and the user will not know 
where to click to be able to sort, since clicking just anywhere in the header will not 
guarantee a sort. 

这个参数的目的是为了定义一个不同的外观和行为的排序 显示在列标题的图标(向上/向下箭头)。这个参数是一个数组 使用下列默认选项viewsortcols:假,“垂直”,真]。在 第一个参数确定排序图标应该在所有的列可见 有排序属性设置为真。这个值设置为真 ,如果你想以告知他(她)可以排序在那个特定的用户可能是有用的 列。假设置默认的图标,可见只有在其上的列 数据已过去的排序。这个参数设置为真正的 原因,所有图标 中的所有排序的列可见。第二个参数决定图标应当如何 放置- 垂直单元,其分拣箭头是一个在另一个之下。 “水平”指的箭头应彼此相邻。第三个参数 决定了点击功能。如果设置为真 ,如果该数据进行排序 用户在列标题,不仅图标点击任何地方。如果设置为false, 被点击的标题排序图标只有当数据进行排序。重要提示: 如果您设置的第三元素设定为假,请确保您的第一个元素设置 到真实的 ; 如果你不这样做,图标将不可见,并且用户将不知道 在哪里点击可以进行排序,因为单击标题随便找个地方将不 保证排序。
  No
width number If this option is not set, the width of the grid is the sum of the widths of the columns 
defined in the colModel (in pixels). If this option is set, the initial width of each 
column is set according to the value of the shrinkToFit option. To change the 
grid width use setGridWidth method. 

如果没有设置该选项,则格栅的宽度是列的宽度之和 在colModel定义(以像素为单位)。如果这个选项被设置,每一个的初始宽度 列根据的值设置shrinkToFit选项。要改变 网格宽度使用setGridWidth方法。
none No
xmlReader object An object which describes the structure of the expected xml data. For a full description 
refer to Retrieving Data in XML Format

其描述预期的XML数据的结构的对象。如需完整的描述 是指以XML格式检索数据。
  No
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值