Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
143731 | Apr 3,2019 04:11 AM UTC | Apr 3,2019 06:29 AM UTC | ASP.NET Web Forms (Classic) | 1 |
![]() |
Tags: DiagramWebControl |
Aspx.cs |
Aspx |
var Commands = new Dictionary<string, object>
{
{
"stopEditing",
new Command
{
CanExecute = "canStopEdit",
Execute = “stopEdit”,
Gesture = new Gesture {Key = Keys.Enter }
}
},
};
DiagramContent.CommandManager.Commands = Commands; |
<script>
function canStopEdit() {
if (args.model.selectedItems.children.length > 0) {
return true;
}
}
function stopEdit() {
var diagram = $("#diagram").ejDiagram("instance");
//label editing stop once we press an enter key diagram.model.commandManager.commands["endEdit"].execute(args);
}
</script> |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.