I have update my samplehttp://jsplayground.syncfusion.com/4clk2oka
<body> <div class="row" ng-controller="PhoneListCtrl"> <div id="RFQOutboxList" ej-grid e-datasource="RFQOutboxListData" e-columns="RFQOutboxListColumns" e-allowscrolling="true" e-scrollsettings="RFQOutboxListScrollSettings"> </div> </div> <script> angular.module('listCtrl', ['ejangular']) .controller('PhoneListCtrl', function ($scope) { var columns = [{ field: "RFQNo" }, .. . . . . . { field: "DeliveryDate" } ]; $scope.RFQOutboxListData = data; $scope.RFQOutboxListColumns = columns; $scope.RFQOutboxListScrollSettings = { width: "auto", height: 300 }; }); </script> |
<div class="tab-content tab-border"> <div class="tab-pane active" style="margin-top:10px;" id="Inbox" ng-controller="PhoneListCtrl"> <div id="Div1" ej-grid e-datasource="RFQOutboxListData" e-columns="RFQOutboxListColumns" e-allowscrolling="true" e-scrollsettings="RFQOutboxListScrollSettings"> </div> </div> <div class="tab-pane" id="Outbox" ng-controller="PhoneListCtrl"> <div id="Div4" ej-grid e-datasource="RFQOutboxListData" e-columns="RFQOutboxListColumns"> </div>
</div> </div>
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
var obj = $("#Div4").ejGrid("instance"); $("#Div4").ejGrid({ scrollSettings: { width: "100%" } }); $("#Div4").ejGrid({ scrollSettings: { width: 500 } });
|