How can I use handleExpandChartChange event to monitor expanded rows in SAPUI5 Gantt Chart?
up vote
1
down vote
favorite
I need to record the list of rows that expanded in a Gantt
chart in a SAPUI5
program.
I found this handleExpandChartChange event but there is no attach function for this. Does anyone have any idea that how do we have to use it or any other method to know about the extended rows?
sapui5
add a comment |
up vote
1
down vote
favorite
I need to record the list of rows that expanded in a Gantt
chart in a SAPUI5
program.
I found this handleExpandChartChange event but there is no attach function for this. Does anyone have any idea that how do we have to use it or any other method to know about the extended rows?
sapui5
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I need to record the list of rows that expanded in a Gantt
chart in a SAPUI5
program.
I found this handleExpandChartChange event but there is no attach function for this. Does anyone have any idea that how do we have to use it or any other method to know about the extended rows?
sapui5
I need to record the list of rows that expanded in a Gantt
chart in a SAPUI5
program.
I found this handleExpandChartChange event but there is no attach function for this. Does anyone have any idea that how do we have to use it or any other method to know about the extended rows?
sapui5
sapui5
asked Nov 8 at 10:39
Mahdi J.Ansari
5321932
5321932
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
I solved my problem. We have to use treeTableToggleEvent
event to monitor the expanded or collapsed rows.
For this we can use the following function as a event handler for treeTableToggleEvent
:
onTreeTableToggleEvent: function (oEvent) {
var oParameters = oEvent.getParameters();
if (oParameters.rowIndex >= 0 && oParameters.expanded) {
if (!this._aExpandedRows.includes(oParameters.rowIndex)) {
this._aExpandedRows.push(oParameters.rowIndex);
}
} else if (oParameters.rowIndex >= 0 && !oParameters.expanded) {
var iIndex = this._aExpandedRows.indexOf(oParameters.rowIndex);
if (iIndex > -1) {
this._aExpandedRows.splice(iIndex, 1);
}
}
},
For using this function we need the _aExpandedRows
array to initiate to empty array when we initiate the Gantt chart.
this._aExpandedRows = ;
The expanded row indices are stored in _aExpandedRows
array.
I solved the monitoring problem of the expansion of nodes. But still I am interested in how to use handleExpandChartChange
event.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
I solved my problem. We have to use treeTableToggleEvent
event to monitor the expanded or collapsed rows.
For this we can use the following function as a event handler for treeTableToggleEvent
:
onTreeTableToggleEvent: function (oEvent) {
var oParameters = oEvent.getParameters();
if (oParameters.rowIndex >= 0 && oParameters.expanded) {
if (!this._aExpandedRows.includes(oParameters.rowIndex)) {
this._aExpandedRows.push(oParameters.rowIndex);
}
} else if (oParameters.rowIndex >= 0 && !oParameters.expanded) {
var iIndex = this._aExpandedRows.indexOf(oParameters.rowIndex);
if (iIndex > -1) {
this._aExpandedRows.splice(iIndex, 1);
}
}
},
For using this function we need the _aExpandedRows
array to initiate to empty array when we initiate the Gantt chart.
this._aExpandedRows = ;
The expanded row indices are stored in _aExpandedRows
array.
I solved the monitoring problem of the expansion of nodes. But still I am interested in how to use handleExpandChartChange
event.
add a comment |
up vote
0
down vote
accepted
I solved my problem. We have to use treeTableToggleEvent
event to monitor the expanded or collapsed rows.
For this we can use the following function as a event handler for treeTableToggleEvent
:
onTreeTableToggleEvent: function (oEvent) {
var oParameters = oEvent.getParameters();
if (oParameters.rowIndex >= 0 && oParameters.expanded) {
if (!this._aExpandedRows.includes(oParameters.rowIndex)) {
this._aExpandedRows.push(oParameters.rowIndex);
}
} else if (oParameters.rowIndex >= 0 && !oParameters.expanded) {
var iIndex = this._aExpandedRows.indexOf(oParameters.rowIndex);
if (iIndex > -1) {
this._aExpandedRows.splice(iIndex, 1);
}
}
},
For using this function we need the _aExpandedRows
array to initiate to empty array when we initiate the Gantt chart.
this._aExpandedRows = ;
The expanded row indices are stored in _aExpandedRows
array.
I solved the monitoring problem of the expansion of nodes. But still I am interested in how to use handleExpandChartChange
event.
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
I solved my problem. We have to use treeTableToggleEvent
event to monitor the expanded or collapsed rows.
For this we can use the following function as a event handler for treeTableToggleEvent
:
onTreeTableToggleEvent: function (oEvent) {
var oParameters = oEvent.getParameters();
if (oParameters.rowIndex >= 0 && oParameters.expanded) {
if (!this._aExpandedRows.includes(oParameters.rowIndex)) {
this._aExpandedRows.push(oParameters.rowIndex);
}
} else if (oParameters.rowIndex >= 0 && !oParameters.expanded) {
var iIndex = this._aExpandedRows.indexOf(oParameters.rowIndex);
if (iIndex > -1) {
this._aExpandedRows.splice(iIndex, 1);
}
}
},
For using this function we need the _aExpandedRows
array to initiate to empty array when we initiate the Gantt chart.
this._aExpandedRows = ;
The expanded row indices are stored in _aExpandedRows
array.
I solved the monitoring problem of the expansion of nodes. But still I am interested in how to use handleExpandChartChange
event.
I solved my problem. We have to use treeTableToggleEvent
event to monitor the expanded or collapsed rows.
For this we can use the following function as a event handler for treeTableToggleEvent
:
onTreeTableToggleEvent: function (oEvent) {
var oParameters = oEvent.getParameters();
if (oParameters.rowIndex >= 0 && oParameters.expanded) {
if (!this._aExpandedRows.includes(oParameters.rowIndex)) {
this._aExpandedRows.push(oParameters.rowIndex);
}
} else if (oParameters.rowIndex >= 0 && !oParameters.expanded) {
var iIndex = this._aExpandedRows.indexOf(oParameters.rowIndex);
if (iIndex > -1) {
this._aExpandedRows.splice(iIndex, 1);
}
}
},
For using this function we need the _aExpandedRows
array to initiate to empty array when we initiate the Gantt chart.
this._aExpandedRows = ;
The expanded row indices are stored in _aExpandedRows
array.
I solved the monitoring problem of the expansion of nodes. But still I am interested in how to use handleExpandChartChange
event.
answered Nov 9 at 10:12
Mahdi J.Ansari
5321932
5321932
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53206006%2fhow-can-i-use-handleexpandchartchange-event-to-monitor-expanded-rows-in-sapui5-g%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password