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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

drag & drop not working: Cannot read property 'dropAreaText' of undefined

Thread ID:

Created:

Updated:

Platform:

Replies:

142010 Jan 14,2019 07:43 PM UTC Jan 17,2019 05:11 AM UTC ASP.NET Web Forms 3
loading
Tags: Uploadbox
Frederik Gysel
Asked On January 14, 2019 07:43 PM UTC

Hi,

Can you please have a look at attached code and tell me why the drag & drop area of the uploadbox control is not visible/working?
(page: WebForm1.aspx)

I see below error in chrome:

ej.web.all.min.js:10 Uncaught TypeError: Cannot read property 'dropAreaText' of undefined
    at Object._dragAndDrop (ej.web.all.min.js:10)
    at Object._initialize (ej.web.all.min.js:10)
    at Object._init (ej.web.all.min.js:10)
    at new <anonymous> (ej.web.all.min.js:10)
    at init.n.fn.(anonymous function) [as ejUploadbox] (http://localhost:56919/js/syncfusion/Scripts/ej/ej.web.all.min.js:10:23743)
    at WebForm1.aspx:58


Thank you
Frederik




Attachment: WebApplication_uploadbox_63769323.rar

Deepa Loganathan [Syncfusion]
Replied On January 16, 2019 01:02 PM UTC

 
Hi Frederik,  
 
Thanks for contacting Syncfusion support.  
 
We have analyzed the reported issue with Uploadbox and suspect that the issue must be possibly because the localized text for the culture you were trying to set “nl-BE” is not defined in your application. So, you need to add the localized text for this culture to get rid of this issue as depicted in the below code.  

<script src="js/syncfusion/ej.culture.nl-BE.js"></script> 
 
ej.Uploadbox.Locale = ej.Uploadbox.Locale || {}; 
ej.Uploadbox.Locale["nl-BE"] = { 
    buttonText: { 
        upload: "Uploaden", 
        browse: "Blader", 
        cancel: "Annuleer", 
        close: "Dichtbij" 
    }, 
    dialogText: { 
        title: "Upload Box", 
        name: "Naam", 
        size: "Grootte", 
        status: "toestand" 
    }, 
    dropAreaText: "Drop bestanden of klik om te uploaden", 
    filedetail: "Het geselecteerde bestand is te groot. Selecteer een bestand binnen het geldige grootte.", 
    denyError: "Bestanden met #Extension extensies zijn niet toegestaan.", 
    allowError: "Alleen bestanden met #Extension extensies zijn toegestaan.", 
    cancelToolTip: "Annuleer", 
    removeToolTip: "Verwijderen", 
    retryToolTip: "opnieuw proberen", 
    completedToolTip: "Voltooid", 
    failedToolTip: "Mislukt", 
    closeToolTip: "Dichtbij", 
} 
 
  
Please find the corrected sample in the below link.  
 
 
Regards,  
Deepa L.

Frederik Gysel
Replied On January 16, 2019 07:18 PM UTC

It works, thanks a lot for your help!

Rgds
Frederik

Prince Oliver [Syncfusion]
Replied On January 17, 2019 05:11 AM UTC

Hi Frederik,   

Most Welcome. We are glad that the issue is resolved in your end. Please let us know if you need any further assistance on this. 

Regards, 
Prince 


CONFIRMATION

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;