wijmo.grid.c1basefield Namespace > options type : dataKey Option |
A value indicating the key of the data field associated with a column. If an array of objects is used as a datasource for wijgrid, this should be string value, otherwise this should be an integer determining an index of the field in the datasource.
Javascript (Usage) | |
---|---|
$(function () { // Get value var returnsValue; // Type: any returnsValue = $(".selector").c1basefield("option", "dataKey"); // Set value var newValue; // Type: any $(".selector").c1basefield("option", "dataKey", newValue); }); |
Javascript (Specification) | |
---|---|
|
$("#element").wijgrid({ columns: [{ dataKey: "ProductID" }]});