I implemented angular ui-grid which should look like: Angular ui-grid
But in some scenarios it is becoming like: Shrinked grid
I need the solution so that the grid width remains intact like in the first image. It generally shrinks when i hit F12 and then navigate for grid to some other page and then come back.
My grid options are:
$scope.gridOptions = {
enableRowSelection : true,
enableRowHeaderSelection : false,
multiSelect : false,
enableColumnMenus : false,
columnDefs : [ {
"field" : "title",
"displayName" : "Title",
"visible" : true,
"enableHiding" : false,
}, {
"field" : "description",
"displayName" : "Description",
"visible" : true,
"enableHiding" : false
}, {
"field" : "dueDate",
"displayName" : "Due Date (mm/dd/yyyy)",
"cellFilter" : "date:'MM-dd-yyyy HH:mm a'",
"visible" : true,
"enableHiding" : false
}, {
"field" : "status",
"displayName" : "Status",
"visible" : false,
"enableHiding" : false
}, ]
};
HTML:
<div class="col-lg-12 col-md-12 col-sm-12">
<div class="panel panel-default">
<div ui-grid="gridOptions" ui-grid-selection class="grid height-250"></div>
</div>
</div>
Thanks