I have an issue and I need someone to see what I'm doing wrong...
I tried to use several times "reorder". I simplify the test to this :
<!-- container templates -->
<
script
id
=
"barcelona"
type
=
"text/x-kendo-template"
>
A
</
script
>
<
script
id
=
"sofia"
type
=
"text/x-kendo-template"
>
B
</
script
>
$("#home-super-container").kendoTileLayout({
containers: [{
colSpan: 1,
rowSpan: 1,
header: {
text: "Barcelona"
},
bodyTemplate: kendo.template($("#barcelona").html())
}, {
colSpan: 1,
rowSpan: 1,
header: {
text: "Sofia"
},
bodyTemplate: kendo.template($("#sofia").html())
}],
columns: 2,
columnsWidth: 285,
rowsHeight: 285,
reorderable: true,
reorder: function (e) {
console.log(e.newIndex, e.oldIndex);
}
});
The console.log indicates (0 0), it should be (0 1) or (1 0)...