Placing an Upload UI Widget in a Script Template Generates an Error

6 posts, 1 answers
  1. Brad Sumner
    Brad Sumner avatar
    28 posts
    Member since:
    Dec 2009

    Posted 06 Jun 2012 Link to this post


    I'm getting the following error when trying to place an upload element in a script template.  The file select button appears with the Kendo UI formatting but the error below is generated when clicking edit or add new.  I'm using the scripts from the Q2 2012 Beta that works with ASP.NET MVC.

    SCRIPT438: Object doesn't support property or method 'value'
    kendo.web.min.js, line 8 character 75690
     
    <input name="photos" id="photos" type="file" data-role="upload"/>

    Thanks,
    Brad
  2. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 posts

    Posted 11 Jun 2012 Link to this post

    Hello Brad,

    I am afraid I cannot understand your case completely. Could you please provide some additional information about your scenario, what browser and Kendo widgets you are using or a code snippets demonstrating your current implementation? I will appreciate if you could send me a small but runnable project that reproduces the issue. Please provide such example and I will check it right away.
    Thank you in advance.

    Kind regards,
    Alexander Valchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. Brad Sumner
    Brad Sumner avatar
    28 posts
    Member since:
    Dec 2009

    Posted 11 Jun 2012 Link to this post

    Alexander,

    Attached is one of the kendo samples with an upload element in the edit template.  The sample includes references to the script files on your cdn...

    http://code.jquery.com/jquery-1.7.1.min.js
    http://cdn.kendostatic.com/2012.1.515/js/kendo.all.min.js

    as well as a reference to the mvc beta script files which are inclided in the zip.  The file input element seems to work fine against the cdn referenced files but not the mvc beta files.  The zip file has the cdn referenced files commented out so it should run against the mvc beta scripts when you run it.

    Thanks for your help!
    Brad
  5. Answer
    Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 posts

    Posted 14 Jun 2012 Link to this post

    Hello Brad,

    Thank you for providing the sample project. It seems that this is a bug in the latest versions, I forwarded the issue to the developers and it will be fixed in the next release.
    As a small sign of our appreciation for your discovery I have updated your Telerik points.

    Regards,
    Alexander Valchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  6. Yaniv
    Yaniv avatar
    4 posts
    Member since:
    Sep 2011

    Posted 15 Jul 2013 Link to this post

    Can you give an example of how to place Async Upload  in a template

    thanks
    Yaniv
  7. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 posts

    Posted 17 Jul 2013 Link to this post

    Hi Yaniv,

    Could you please specify what issues you encountered? Did you receive any JavaScript errors?
    Can you please provide the relevant code so I can examine your case in details.

    Regards,
    Alexander Valchev
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top
Kendo UI is VS 2017 Ready