Wijmo UI for the Web
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.

Syntax
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) 
var dataKey : any;
Example
$("#element").wijgrid({ columns: [{ dataKey: "ProductID" }]});
Browser Compatibility
7
5
5

See Also

Reference

options type
c1basefield jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.