or
var grid = $("#requestGrid").data("kendoGrid");
var scheduler = $("#ganttScheduler").data("kendoScheduler");
var itemUID;
grid.table.kendoDraggable({
cursorOffset: {
top: 5,
left: 5
},
filter: "tbody > tr",
group: "Grid",
hint: function (e) {
itemUID = e.attr(kendo.attr("uid"));
return $('<
div
class
=
"k-grid k-widget"
><
table
><
tbody
><
tr
>' + e.html()+ '</
tr
></
tbody
></
table
></
div
>');
}
});
scheduler.element.kendoDropTarget({
group: "Grid",
drop: function (e) {
alert("Dragged row 'uid': " + itemUID);
//in case you need the model(data item) for this row
var model = grid.dataSource.getByUid(itemUID);
var aa = $(e.toElement).text();
itemUID = null;
}
});
<!doctype html>
<
html
lang
=
"en"
>
<
head
>
<
meta
charset
=
"UTF-8"
>
<
title
>Kendo UI Editor Toolbar Issue</
title
>
<
link
rel
=
"stylesheet"
href
=
"http://cdn.kendostatic.com/2013.2.716/styles/kendo.common.min.css"
>
<
link
rel
=
"stylesheet"
href
=
"http://cdn.kendostatic.com/2013.2.716/styles/kendo.default.min.css"
>
<
style
>
/* uncomment following line for a workaround */
/* .k-editor-toolbar{ white-space: normal;} */
</
style
>
</
head
>
<
body
>
<
h1
>Kendo UI Editor Toolbar Issue</
h1
>
<
div
id
=
"editdiv"
style
=
"display: none"
>
<
div
>
<
textarea
id
=
"editor"
cols
=
"30"
rows
=
"10"
style
=
"width:570px;height:300px"
></
textarea
>
</
div
>
</
div
>
<
button
id
=
"show"
>Show Editor</
button
>
<
script
src
=
"http://code.jquery.com/jquery-1.9.1.min.js"
></
script
>
<
script
src
=
"http://cdn.kendostatic.com/2013.2.716/js/kendo.web.min.js"
></
script
>
<
script
>
$(function(){
$("#editor").kendoEditor({
encoded: true,
tools: [ "bold", "italic", "underline", "strikethrough",
"justifyLeft", "justifyCenter", "justifyRight",
"justifyFull", "insertUnorderedList", "insertOrderedList",
"indent", "fontName", "fontSize", "outdent",
"foreColor", "backColor"]
});
$("#show").on('click', function(){
$("#editdiv").show();
$(this).hide();
})
});
</
script
>
</
body
>
</
html
>