How to stop drag event resize body width ?

like this https://material.angular.io/cdk/drag-drop/overview

1 Reply 1 reply marked as answer

MK Muthukrishnan Kandasamy Syncfusion Team November 16, 2020 10:51 AM UTC

 
Hi Surachet, 
 
Thanks for contacting Syncfusion support. 
 
We have validated your requirement with your provided details. We suspect that your requirement is to restrict drag and drop functionality of TreeView within a specific target container. For achieving your requirement, we suggest you to use the DropArea property. Please refer to the below code block. 
 
    <div class="control_wrapper"> 
        <SfTreeView TValue="TreeItem" AllowDragAndDrop="true" DropArea=".control_wrapper"> 
            <TreeViewFieldsSettings DataSource="@TreeDataSource" Id="NodeId" Text="NodeText" Expanded="Expanded" Child="@("Child")"></TreeViewFieldsSettings> 
        </SfTreeView> 
    </div> 
 
We have prepared sample application for your convenience, the attached sample can be downloaded from the below link. 
 
 
 
 
 
 
We also have drag and drop support in ListBox component. Please refer to the below documentation link for more details. 
 
 
Please let us know, if you need any further assistance. 
 
Regards, 
Muthukrishnan K 


Marked as answer
Loader.
Up arrow icon