We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

drag upload box outside drag area

Hi,

The upload box is 'stuck' (when dragging) against the top and left side of the drag area. (highlighted below in red)

What do I have to change to be able to drag the upload box outside the drag area (to top and left).



Thank you
Frederik

3 Replies

KR Keerthana Rajendran Syncfusion Team April 18, 2019 12:07 PM UTC

Hi Frederik,  
 
Thanks for contacting Syncfusion support.  
 
Dialog can be dragged outside the drag wrapper based on the content set in dialogAction property of UploadBox. To drag the upload dialog all over the window, you can set content property of dialogAction as body. Please refer to the below given code.  
 
   <ej:UploadBox ID="Upload1" SaveUrl="saveFiles.ashx" RemoveUrl="removeFiles.ashx" runat="server" AllowDragAndDrop="true"> 
                <DialogAction Content="body" /> 
   </ej:UploadBox> 
 
Note: If you wish to drag within certain limit then you can change this content target as any container id based on your scenario.  
 
We have also attached a sample for your reference which can be downloaded from the below given link 
 
 
 
Now the dialog can be dragged outside the drag area  
 
Regards, 
Keerthana. 



FG Frederik Gysel April 18, 2019 07:12 PM UTC

ahhh my god, that easy.

Sorry for this.

Thanks for your help Keerthana!

Regards
Frederik


SK Sujith Kumar Rajkumar Syncfusion Team April 19, 2019 08:51 AM UTC

Hi Frederik, 
  
We are glad that your issue is resolved. Please let us know if you require any further assistance. 
  
Regards, 
Sujith R 


Loader.
Live Chat Icon For mobile
Up arrow icon