Wijmo UI for the Web
columnsAutogenerationMode Option

Default value: 'merge'

Determines behavior for column autogeneration. Possible values are: "none", "append", "merge".

Syntax
Javascript (Usage) 
$(function () {
    
    // Get value
    var returnsValue; // Type:  string
    returnsValue = $(".selector").wijgrid("option", "columnsAutogenerationMode");
    
    // Set value
    var newValue; // Type:  string
    $(".selector").wijgrid("option", "columnsAutogenerationMode", newValue);
        
});
Javascript (Specification) 
var columnsAutogenerationMode : string;
Example
$("#element").wijgrid({ columnsAutogenerationMode: "merge" });
Remarks
Possible values are: "none": Column auto-generation is turned off. "append": A column will be generated for each data field and added to the end of the columns collection. "merge": Each column having dataKey option not specified will be automatically bound to the first unreserved data field.For each data field not bound to any column a new column will be generated and added to the end of the columns collection. To prevent automatic binding of a column to a data field set its dataKey option to null. Note: columns autogeneration process affects the options of columns and the columns option itself.
Browser Compatibility
7
5
5

See Also

Reference

options type
wijgrid jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.