Skip to Content

Issue in treeTable with resize of the headers

I have treeTable(sap.ui.table)that I raise in dialog( sap.ui.commons) .

The problem is when the UI is loaded and I tried to resize the headers the headers didn't change there side and they have fix size for the label.

The content of the treeTable are resize but the labels of the header stay in the same size.

Example code of treeTable and Dialog

this._oMyTable = new sap.ui.table.TreeTable({
selectionMode : sap.ui.table.SelectionMode.None,
expandFirstLevel : false,
editable : false,
width : "100%",
toggleOpenState: [logicInControler]
});

this._oMyTable.addColumn(new sap.ui.table.Column({
label : "treeTable",
template : new sap.ui.commons.TextView({
text : {
path : "summary"
}
}),
width : "45%"
}));


this._oMyTable.addColumn(new sap.ui.table.Column({
label : "author",
template : new sap.ui.commons.TextView({
text : {
path : "author"
}
}),
width : "15%"
}));


this._oMyTable.addColumn(new sap.ui.table.Column({
label : "date",
template : new sap.ui.commons.TextView({
text : {
path : "date",


}
}),
width : "25%"
}));


//Define the columns and the control templates to be used
this._oMyTable.addColumn(new sap.ui.table.Column({
label : "changeid",
template : new sap.ui.commons.TextView({
text : {
path : "changeId",
}
}),
width : "15%"
}));
this._oMyTable.bindRows("/results");
this._oMyDialog = new sap.ui.commons.Dialog({
width : "1000px",
modal : true,
title : "changes",
content : [ this._oMyTable ]
});
this._oOKButton = new sap.ui.commons.Button({
id : "fetch_dialog_ok_button",
text : "ok",
tooltip : "ok",
enabled : true,
press : [ oController._run, oController ]
});
this._oMyDialog.addButton(this._oOKButton);
return this._oMyDialog;

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers