RadUploader in dialog, filecount = 0

3 posts, 0 answers
  1. Michael
    Michael avatar
    2 posts
    Member since:
    Aug 2012

    Posted 28 Aug 2012 Link to this post

    Hi there.

    I have an Uploader control appearing in a dialog pop up, and the file count is always 0.

    If i embed the control onto the main page, it works as expected, but i cannot get it work when in the pop up dialog box.

    Is there a way i can get this work in a dialog please?

    regards 
  2. Yu
    Yu avatar
    1 posts
    Member since:
    Sep 2012

    Posted 05 Sep 2012 Link to this post

    Hi, it works in my project.

    First you should add form as follows:
    @using (Html.BeginForm("Your Action", "Your Controller", FormMethod.Post, new { enctype = "multipart/form-data", id = "Your FormId" }))
    {
    ......
    }

    Then when you click save button, it should post the form as follows:
    function save() {
            var isValid = $("#Your FormId ").valid();
            if (isValid) {
                $("#Your FormId ").ajaxSubmit(function (result) {
    ......
                });
            }
        }

    I hope it works in your project.
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Michael
    Michael avatar
    2 posts
    Member since:
    Aug 2012

    Posted 10 Sep 2012 Link to this post

    Thanks for your reply.

    I have had to get this working another way.

    Maybe ill come back to this someday 
    :)
Back to Top