Jqgrid attribute description

Source: Internet
Author: User
Tags server array jqgrid

1.0 colmodel: attribute settings for fields to be displayed
1.1 align: defines the alignment of data to cells. String left
1.2 datefmt: Date Format, string y-m-d
1.3 Editable: define whether the field can be edited Boolean false
1.4 defval: Default Value of the search field (only for Custom Search) string empty
1.5 edittype: The field control type (text, textarea, select, checkbox, password, button, image, file) string text
1.6 Surl: The select element % string empty is obtained only when the Custom Search and edittype attributes are select and description.
1.7 editoptions: Set array empty array for the properties of the control type configured for edittype
1.7.1 value: Configure attribute % based on edittype (For details, refer to Value configuration of editoptions) Mixed none
1.7.2
Dataurl: This attribute applies only to select
(Select data source edittype: "select", editoptions: {dataurl: 'test.txt ',
Defaultvalue: 'intime'}) string empty
1.7.3 datainit: Only one function null is triggered when the control is created.
1.7.4 dataevents: append event processing to the current control % array empty array
1.7.5 defaultvalue: Default Value (function return value may be) Mixed none
1.7.6 others: You can set any valid property editoptions: {size: 10, maxlength: 8} mixed none for the control.
1.8 editrules: Set the rule array empty array for the field editing Control
1.8.1 edithidden: When this field is hidden, this attribute controls whether to edit Boolean false
1.8.2 required: whether to verify NULL data Boolean false
1.8.3 number: whether to verify the number Boolean false
1.8.4 INTEGER: whether to verify the integer Boolean false
1.8.5 minvalue: Verify the minimum value number (integer) empty
1.8.6 maxvalue: Verify the maximum number (integer) empty
1.8.7 Email: whether to verify email Boolean false
1.8.8 URL: whether the verification is a valid URL Boolean false
1.8.9 Date: whether to verify the date Boolean false
1.8.10 time: whether to verify time boolean false
If this field is not required, if it is required to verify whether it is email, you should configure Email: True, required: false
1.9 formoptions: Set the relative settings of this field to the related settings in the form array empty array
1.9.1 elmprefix: If this parameter is set, the setting string empty will appear in front of the control.
1.9.2 elmsuffix: If this parameter is set, the setting string empty is displayed after the control.
1.9.3 label: If set, the name string empty set by colnames is replaced.
1.9.4 rowpos: Set the position of the row where the field is located. Count number empty from 1.
1.9.5 colpos: Set the position of the column where the field is located. Count number empty from 1.
1.10 formatoptions: set the format of a specific column to overwrite the default value of the language file array empty array
1.11 formatter: Specify the formatoptions setting format type mixed none
1.11.1 INTEGER: When formatter specifies this attribute, formatoptions can set the following attributes.
1.11.1.1 thousandsseparator: The separator string empty
1.11.1.2 defaulvalue: the default value of string empty without data
1.11.2 number: When formatter specifies this attribute, formatoptions can set the following attributes.
1.11.2.1 decimalseparator: decimal separator string empty
1.11.2.2 thousandsseparator: String empty separator per thousand characters
1.11.2.3 decimalplaces: decimal places string empty
1.11.2.4 defaulvalue: the default value of string empty without data
1.11.3 currency: When formatter specifies this attribute, formatoptions can set the following attributes.
1.11.3.1 decimalseparator: decimal separator string empty
1.11.3.2 thousandsseparator: String empty separator per thousand characters
1.11.3.3 decimalplaces: decimal places string empty
1.11.3.4 defaulvalue: the default value of string empty without data
1.11.3.5 Prefix: The text added before the data, such as the currency symbol "$" string empty
1.11.3.6 Suffix: The text added after the data, such as the currency symbol "$" string empty
1.11.4 Date: When formatter specifies this attribute, formatoptions can set the following attributes.
1.11.4.1 srcformat: original format string empty
1.11.4.2 newformat: new output format string empty
1.11.5 Email: When formatter is specified as the email type, add href string empty to this email directly.
1.11.6 link: When formatter specifies this attribute, formatoptions can set the following attributes.
1.11.6.1 target: the default value is empty. If this parameter is set, a link string empty with the cell value and Target attribute is created.
1.11.7 showlink: When formatter specifies this attribute, formatoptions can set the following attributes.
1.11.7.1 baselinkurl: link. String empty
1.11.7.2 showaction: value-added, after baselinkurl. String empty
1.11.7.3 addparam: additional parameter. String empty
1.11.7.4 target: If set, add one additional attribute. String empty
1.11.7.5 idname: it is the first parameter, which is then supplemented by showaction. By default, this is ID string empty
1.11.8 checkbox: When formatter specifies this attribute, formatoptions can set the following attributes.
1.11.8.1 disabled: the default value "true" indicates that the status cannot be changed. If it is set to "false", it indicates a Boolean that can be changed.
1.11.9 select: When edittype and formatter specify this attribute, the value of editoptions: {value: "1: One; 2: Two"} is displayed as one and two string empty.
Colmodel: [{Name: 'myname ',
Edittype: 'select', formatter: 'select ',
Formatoptions: {baselinkurl: 'myrule', addparam: '& Action = edit ',
Idname: 'myid '},...}
Http: // localhost/myrul. php? Myid = 123 & Action = Edit
1.12 unformat: You can specify a custom format for formatter. Function null
1.13 hidedlg: if it is set to true, % Boolean false will not appear in the display/hide field function.
1.14 hidden: whether this field hides Boolean false
1.15 index: sidx parameter string empty
1.16 jsonmap: JSON string empty when the JSON ing field is defined
1.17 xmlmap: the XML string empty when the XML file is mapped to this field
1.18 key: If no ID is defined on the server side, you can set the field to the row number. Only one field can be set to this attribute. Only 1st fields are accepted, and others are ignored. boolean false
1.19 name: Set the unique name of this field. This attribute must be set, string empty
1.20 label: If colnames is empty, the title displays this setting. If the colnames array and this setting are both empty, the title displays the name attribute. String empty
1.21 resizable: Set whether this field can be edited Boolean true
1.22 search: whether this field allows search (query) Boolean true
1.23 stype: Set the Data Type string text during search
1.24 searchoptions: configure the search option array empty array
1.24.1 dataurl: This attribute applies only to stype: 'select' string empty
1.24.2 datainit: equivalent to the datainit function null of editoptions
1.24.3 dataevents: equivalent to the dataevents array empty array of editoptions
1.24.4 ATTR: You can set the valid attribute of the created element. The object is null.
1.24.5 searchhidden: When this field is hidden, this attribute controls whether to search Boolean false
1.24.6 defaultvalue: Default Value: String empty
1.24.7 SOPT: comparison operator, which can be any combination ('eq ', 'ne', 'lt ', 'le', 'gt', 'ge ', 'bw ', 'bn ', 'in', 'ni', 'ew', 'en', 'cn', 'nc ') array empty array
Equal to eq =
Not equal to ne <>
Less than lt <
Less than or equal to Le <=
Greater than GT>
Greater than or equal to ge> =
BW like starting *
Not starting with * bn not like
In in
Not in Ni not in
End with * EW like
Not ending with * en not like
Including CN like
Does not contain NC not like
1.25 sortable: Boolean true
1.26 sorttype: String text
1.27 width: width. Percentage number 150 cannot be set.

2.0 navgrid: function button (add, delete, modify, search, and refresh) settings
2.1 top: number of pixels (integer) 0 from the top
2.2 left: number of pixels (integer) 0 to the left
2.3 width: Width Number (integer) 300
2.4 Height: height number (integer) Auto
2.5 dataheight: the distance from the form content to the button height number (integer) Auto
2.6 modal: whether the modal form is Boolean false
2.7 drag: whether to drag Boolean true
2.8 resize: whether to change the size Boolean true
2.9 URL: submitted URL. If this parameter is set, replace editurl string empty.
2.10 mtype: Request type post | get string post
2.11 editdata: the data submitted to the server array empty array
2.12 recreateform: whether to create a new form Boolean false
2.13 jqmodal: Set to true to use the existing jqmodal plug-in dialog box. If it is set to true and the plug-in does not exist, jqgrid uses its own method to create a dialog box. For example, it will affect the date plug-in. The effects of true and false are Boolean true.
2.14 addedrow: %
2.15 topinfo: header information string empty
2.16 bottominfo: String empty
2.17 saveicon: The saved image. The first option is to enable/disable the image, and the second item tells you where to place the image to the left or right of the text. valid UI image style corresponding to the third item [true, "left", "UI-icon-disk"]
2.18 closeicon: The canceled image is the same as the image [true, "left", "UI-icon-close"].
2.19 savekey: saved shortcut key. Press enter [false, 13] by default.
2.20 navkeys: Move the last one to the next shortcut. The default up/down arrow [false,]
2.21 checkonsubmit: whether to display the re-confirmation dialog box when saving. It is only used in edit mode Boolean false.
2.22 checkonupdate: whether to display the "Confirm" dialog box when canceling. It is only used in the ADD and edit modes Boolean false.
2.23 closeafteradd: when adding a mode, whether to close the dialog box after adding a record Boolean false
2.24 clearafteradd: whether to clear the last data Boolean true when adding data
2.25 closeafteredit: Indicates whether to close the dialog box Boolean false after editing.
2.26 reloadaftersubmit: whether to reload data Boolean true after the operation is complete
2.27 closeonescape: whether to associate the ESC key Boolean false
2.28 ajaxeditoptions: % object empty object

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.