Posted 13 February 2018, 4:17 am EST
Hello, im actually have a problem when I charge my template, using a flexGrid
I need to resize mi window to refresh and watch my flexGrid because it doesn´t initialize it ,
here ir mi code I make the intance and when I click on tab, I just initialize the instancy, but I need to click two times for see the result,
My question is, how can initialize correctly or initialize only using one click… thanks
$scope.flex = new wijmo.grid.FlexGrid('#flex')
$scope.init = function () {
$scope.flex.initialize({
autoGenerateColumns: false,
itemsSource: countries,
allowMerging: 'All',
allowSorting: false,
allowDragging: 0,
allowDelete: false,
// selectionMode:3,
columns: [
{ binding: 'country', header: 'Country' },
{ binding: 'sales', header: 'Sales' },
{ binding: 'expenses', header: 'Expenses' },
{ binding: 'downloads', header: 'Downloads' }
]
});
}
```[img]public\uploads\de4153879b6d84617e36ad16eb8f09e21518541865152.png[/img]