Wijmo UI for the Web
ensurePxWidth Option

Determines whether to use number type column width as the real width of the column.

Syntax
Javascript (Usage) 
$(function () {
    
    // Get value
    var returnsValue; // Type:  bool
    returnsValue = $(".selector").c1field("option", "ensurePxWidth");
    
    // Set value
    var newValue; // Type:  bool
    $(".selector").c1field("option", "ensurePxWidth", newValue);
        
});
Javascript (Specification) 
var ensurePxWidth : bool;
Example
$("#element").wijgrid({ columns: [{ ensurePxWidth: true }]});
Remarks
If this option is set to true, wijgrid will use the width option of the column widget. If this option is undefined, wijgrid will refer to the ensureColumnsPxWidth option.
Browser Compatibility
7
5
5

See Also

Reference

options type
c1field jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.