Categories | Question details Back To List | ||
How to Serialize (save) File order in Folder Thumbnail view Hi how do I save the order of files in the dhtmlxFolder object after drag and drop. Thanks Answer posted by dhxSupport on Jan 20, 2009 08:08 There is no public API, but you can get such data as var order = folders._orderCol[0]; for (var i=0; i<order.length; i++) alert(order[i].data.id ); The ID stored in the same order as elements in folders. Answer posted on Jan 20, 2009 17:12 his Works well thanks. dhtmlxolders.prototype.getItemOrder = function(){ var outArray = new Array(); for (var i=0; i<this._orderCol.length; i++){ outArray[outArray.length] = this._orderCol[i].data.id } return outArray; }
|