I have strange and unexpected behavior with my Grid with multiple headers (3 levels) when i resize window.
Here is how it's look like: https://gyazo.com/969e62e758a1b583c06cdcc6af056acf
They dissapear after resize . I'm using autoFitColumn() for all columns in Grid, and some cells keep width stable, but these with multiple headers has some problems.
var
gridOptions = {
pdf: {
allPages:
true
,
avoidLinks:
true
,
paperSize:
"A4"
,
margin: { top:
"2cm"
, left:
"1cm"
, right:
"1cm"
, bottom:
"1cm"
},
landscape:
true
,
repeatHeaders:
true
,
template: $(
"#page-template"
).html(),
scale: 0.5,
title:
'Raport dzienny'
},
columnMenu :
true
,
groupable:
true
,
scrollable:
true
,
sortable:
true
,
filterable:
true
,
reorderable:
true
,
lockable:
true
,
resizable:
true
,
dataSource:{
data:
this
.data,
},
columns : options.columns ||
this
.generateColumns(),
};
This specific column:
{
title:
'Liczniki'
, columns: [
{
title:
'Kilometrzy'
, columns: [
{title:
'Początek'
, field:
'begin_km_counter'
, format:
"{0:n2}"
},
{title:
'Koniec'
, field:
'end_km_counter'
, format:
"{0:n2}"
}
]
},
{
title:
'Motogodziny'
, columns: [
{title:
'Początek'
, field:
'begin_mth_counter'
},
{title:
'Koniec'
, field:
'end_mth_counter'
}
]
},
{
title:
'Przepływomierz'
, columns: [
{title:
'Początek'
, field:
'begin_flowmeter_counter'
},
{title:
'Koniec'
, field:
'end_flowmeter_counter'
}
]
}
]
},