1. Options 1.1 Caption
String
The title of the table. displayed on the header. If the number is empty, it will not be displayed.
Empty
Caption: "Manipulating Array Data"
1.2 Colnames
Array
An array of column names. The name will be displayed in the header. Names are separated by commas, and the number should be equal to the number of Colmodel arrays
Colnames: [' Inv No ', ' Date ', ' Client ', ' Amount ', ' tax ', ' total ', ' Notes '],
1.3 Colmodel
Array
Describes the array of column parameters. This is the most important part of the form, see Colmodelapi.
Colmodel: [{name:' ID ', index: ' id ', width:60,sorttype: ' int '}, {name:' Invdate ', index: ' Invdate ', Width:90,sorttype: ' Date '}, {name:' Name ', index: ' Name ', width:100}, {name:' Amount ', Index: ' Amount ', Width:80,align: "Right", SortType: "Float"}, {name:' Tax ', Index: ' tax ', width:80,align: ' Right ', SortType: ' Float '}, {name:' Total ', index: ' All ', width:80,align: "Right", SortType: "Float"}, {name:' Note ', index: ' Note ', width:150,sortable:false} ],1.4 MultiSelect
Boolean
When this property is set to True, multi-row selection is enabled
true,
1.5 datatype
String
Defines the type of data that the table wants to have, valid values are:
Xml-xml data;
Xmlstring-xml string;
Json-json data
Jsonstring-json string
local-client data (array)
Javascript-javascript data
function-function returns data
See Colmodel API and retrieve Data
DataType: "Local",
1.6 Pager
Defines a data browsing navigation page bar. This must be a valid HTML element; In the example, we define a DIV element with ID pager. The navigation layer can be placed anywhere.
Pager: ' #pager2 ',
1.7 RowNum
Sets how many records are displayed in the table. This parameter is passed through the URL to the server for returning data.
Rownum:5,
1.8 rowlist
An array that is used to construct the Select box option. This select box is used in the pagination bar to display the number of records for the customer selection table. When changed, this parameter replaces the rownum parameter in the URL.
ROWLIST:[10,20,30],
1.9 Sortname
Sets the initial row sequence. Can be either a column name or a column number. This parameter is used by a URL for the server.
1.10 URL
This tells us where to get the data. Typically this is a server-side file that links the database and returns the appropriate data to populate the table.
1.11 Mtype
This tells you how to call ajax:get or post.
1.12 Pagerpos
String
Specify the location of the page bar
The default is: Center
1.13 GridView
Boolean
Set to true to increase the display speed of 5~10 times. But can no longer use Treegrid, Subgrid, or Afterinsertrow events
The default is: false
can be written
1.14 direction
String
The direction of writing in the table. "Ltr" From left to right (default), "RTL" from right to left
The default is: LTR
Read-only
1.15 Hiddengrid
Boolean
If set to true, the table begins to be hidden, the data is not loaded, and only the caption is displayed. When the first click Show/Hide button displays the table, the data is loaded from the server.
The default is: false
Read-only
This property appears to be valid only when it is obtained from the server.
Jqgrid parameter One