jQWidgets Forums
jQuery UI Widgets › Forums › Grid › How to show the javaType 'Integer' in grid?
Tagged: datafields, integer, JAVA, type
This topic contains 3 replies, has 2 voices, and was last updated by michael_lychee 9 years, 9 months ago.
-
Author
-
hello ~
I wanna show a column which has a javatype of Integer, what is the correct type in dataFields?
and where could I find all the types of dataFields ?
I tried this : { name: ‘sort’, type: ‘number’ },
and the console is like this: Uncaught Error: jqxDataTable: Invalid column ‘dataField’ setting. jqxDataTable’s columns should be initialized with unique data fields.
how should I fix this?
Hi michael_lychee,
From the error message you can see that the error is thrown from jqxDataTable, not from jqxGrid.
The problem is duplicating of data field names.Info about types:
type – A string containing the data field’s type. Possible values: ‘string’, ‘date’, ‘number’, ‘int’, ‘float’, ‘bool’.Info about column types:
columntype – sets the column’s type.
Possible values:
‘number’ – readonly column with numbers.
‘checkbox’ – readonly checkbox when the editing is disabled. Checkbox input when editing is enabled.
threestatecheckbox – determines whether the checkbox has an indeterminate state when the value is null. The default value is false.
‘numberinput’ – sets a number input editor as a default editor for the column. Requires: jqxnumberinput.js
‘dropdownlist’ – sets a dropdownlist editor as a default editor for the column. Requires: jqxlistbox.js and jqxdropdownlist.js
‘combobox’ – sets a combobox editor as a default editor for the column. Requires: jqxlistbox.js and jqxcombobox.js
‘datetimeinput’ – sets a datetimeinput editor as a default editor for the column. Requires: jquery.global.js, jqxcalendar.js and jqxdatetimeinput.js
‘textbox’ – sets a textbox editor as a default editor for the column.
‘template’ – sets a custom editor as a default editor for the column. The editor should be created in the “createeditor” callback. The editor should be synchronized with the cell’s value in the “initeditor” callback. The editor’s value should be retrieved in the “geteditorvalue” callback.
‘custom’ – sets a custom editor as a default editor for a cell. That setting enables you to have multiple editors in a Grid column. The editors should be created in the “createeditor” callback – it is called for each row when the “columntype=custom”. The editors should be synchronized with the cell’s value in the “initeditor” callback. The editor’s value should be retrieved in the “geteditorvalue” callback.Best Regards,
Ivailo IvanovjQWidgets Team
http://www.jqwidgets.comoh!i changed the name of it, and thx for those infos.
-
AuthorPosts
You must be logged in to reply to this topic.