I am trying to avoid drag and droping on disabled elements . My tree view definition is:
Events do some business logic for elements movement. I was trying to find on DragStart event any information about k-state-disabled class in e.sourceNode but I fail.
Also I was trying to found any Enabled property in data source element - also did not found anything.
Could someone help with this issue ? Where is my mistake?
@(Html.Kendo().TreeView()
.Name("treeview")
.DragAndDrop(true)
.ExpandAll(true)
.Events(e => e.Drag("...").DragStart("....").Drop("...").Select("..."))
....
.BindTo(....
item.Text = x.Name;
item.Id = x.Id
item.Enabled = false;
)
Also I was trying to found any Enabled property in data source element - also did not found anything.
Could someone help with this issue ? Where is my mistake?