The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I have used userhandle for this issue but is there a way to set visibility of this userhandle to false on drag of the shapes from symbol palette.
I require the userhandle to be visible only on selection of shapes in canvas. In rest of the time like drag drop of shapes from symbol palette the userhandle should not be visible.
Please let me know on same.
Thanks
SGShyam G Syncfusion Team November 22, 2019 11:50 AM UTC
Hi Sudhanshu,
We have created a sample in which we have shown user handle in selectionChange event and hidden it in the positionChange and collectionChange event. So, the user handle will be visible only when you select a node in the diagram.
Code example:
<DiagramComponent
collectionChange={(args) => {
showHideUserhandles(false);
}}
selectionChange={(args) => {
showHideUserhandles(true);
}}
positionChange={(args) => {
showHideUserhandles(false);
}}/>
function showHideUserhandles(visiblity) {
// Iterate an handles
for (let i = 0; i < diagramInstance.selectedItems.userHandles.length; i++) {
let userHandle = diagramInstance.selectedItems.userHandles[i];