Hello,
In the sample below, when you try to move item_1 below item_3, it gets instead positioned between item_2 and item_3.
Please note that this only happens when moving inside the same folder
This happens with latest LGPL build (2010-09-20)
Greetings,
Stéphane BARBARAY.
In the sample below, when you try to move item_1 below item_3, it gets instead positioned between item_2 and item_3.
Please note that this only happens when moving inside the same folder
Code:
isc.VLayout.create
({
width:'100%',
height:'100%',
autoDraw:true,
defaultLayoutAlign:'center',
overflow:'auto',
members:
[
isc.TreeGrid.create
({
ID:'mytree',
alternateRecordStyles:true,
dataSource:isc.DataSource.create
({
ID:'supplyItem',
dataFormat:'json',
fields:
[
{name:"itemId", type:"integer", primaryKey:true},
{name:"parentId", type:"integer", foreignKey:"supplyItem.itemId", rootValue:0},
{name:'title', type:'text'}
],
clientOnly: true,
testData:
[
{itemId:1001,parentId:0,title:'folder_1'},
{itemId:1,parentId:1001,title:'item_1'},
{itemId:2,parentId:1001,title:'item_2'},
{itemId:3,parentId:1001,title:'item_3'},
]
}),
loadDataOnDemand: false,
canReorderRecords: true,
canReparentNodes: true,
canAcceptDroppedRecords: false,
canDragRecordsOut: false,
canEdit:true,
editByCell:true,
modalEditing:true,
showConnectors:true,
showFullConnectors:true,
canResizeFields:false,
canReorderFields:false,
canGroupBy:false,
canPickFields:false,
canFreezeFields:false,
canSort:false,
canAutoFitFields:false,
showHeaderContextMenu:false,
animateFolders:false,
fields:
[
{name:'title'}
],
dragDataAction: "move"
})
]
});
mytree.fetchData();
Greetings,
Stéphane BARBARAY.
Comment