Posted 22 March 2018, 10:41 am EST - Updated 3 October 2022, 3:56 pm EST
Hello everyone!
I need to autosize columns width and rows height when my FlexGrid is initialized with data.
Here is my code from controller:
var grid = new wijmo.grid.FlexGrid('#myFlexGrid', {
itemsSource: dataTableArray
});
grid.cells.rows.defaultSize = 70;
grid.formatItem.addHandler(function (s, e) {
e.cell.style.textAlign = 'center';
var html = e.cell.textContent;
e.cell.innerHTML = '<div>' + html + '</div>';
});
HTML part:
<div id="myFlexGrid">
</div>
- Where should I add a Handler so I can change my Row & Column sizes.
- How can I make text-wrap?
- Where can I find list of parameters that participate in grid initilization (like itemsSource: dataTableArray)
Sorry for such a kidy question, there are a lot of answers to this question, but most of them are made on new Angular, some of them use in HTML grid initilization, that’s why it is so hard to get in to the flow.
Here is my grid: