on 05-06-2014 11:38 AM
Hi All,
I am having a requirement to implement the drag and drop feature in SAPUI5 Table and Tree Table.
I am having a table with set of names which should be able to drag and a Tree Table which should accept the dragging object, so it is defined as a drop area.
I Used JqueryUI to make the controls as drag and drop which is working fine.
The problem is when I drag the name towards the Tree Table it is getting hide behind the table which makes the user confused.
When I go through the code, I found out that this issue occurs due to the position related to CSS, which is applied default in SAPUI5.
code for drag and drop is below
var oMemberId;
$(".selector Table").draggable({
helper: "clone",
cursor: "pointer",
revert: "invalid",
zIndex: 9999,
start: function(event) {
oSelectedId = this.parentNode.previousSibling.firstChild.childNodes[0].value;
}
}).disableSelection();
$(".selector treetable").droppable({
drop: function(event){
var dataLevel=(this.attributes["data-sap-ui-level"].value);
var oDropAreaId = this.childNodes[2].textContent;
}
}).disableSelection();
Please provide me an alternative solution.
Thanks in advance,
Aravindh
var oMemberId;
$(".selector Table").draggable({
helper: "clone",
cursor: "pointer",
revert: "invalid",
zIndex: 9999,
start: function(event) {
oSelectedId =this.parentNode.previousSibling.firstChild.childNodes[0].value;
},
drag: function(event) {
$(".selector Table div.sapUiTableCnt,.selector Table div.sapUiTableCtrlScr").css("overflow","visible");
},
}).disableSelection();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
zIndex of table is 9999 which might be causing this problem. The zIndex value of what you drag must be greater than that of the table so that it appears above the table.
Regards
Sakthivel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.