Wijmo UI for the Web
ensureColumnsPxWidth Option

Default value: false

Determines if the exact column width, in pixels, is used.

Syntax
Javascript (Usage) 
$(function () {
    
    // Get value
    var returnsValue; // Type:  bool
    returnsValue = $(".selector").wijgrid("option", "ensureColumnsPxWidth");
    
    // Set value
    var newValue; // Type:  bool
    $(".selector").wijgrid("option", "ensureColumnsPxWidth", newValue);
        
});
Javascript (Specification) 
var ensureColumnsPxWidth : bool;
Example
$("#element").wijgrid({ ensureColumnsPxWidth: true });
Remarks
By default, wijgrid emulates the table element behavior when using a number as the width. This means wijgrid may not have the exact width specified. If exact width is needed, please set the ensureColumnsPxWidth option of wijgrid to true. If this option is set to true, wijgrid will not expand itself to fit the available space.Instead, it will use the width option of each column widget.
Browser Compatibility
7
5
5

See Also

Reference

options type
wijgrid jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.