This is a migrated thread and some comments may be shown as answers.

RadUploader in dialog, filecount = 0

2 Answers 56 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 2
Michael asked on 28 Aug 2012, 08:44 AM
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 Answers, 1 is accepted

Sort by
0
Yu
Top achievements
Rank 1
answered on 05 Sep 2012, 09:52 AM
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.
0
Michael
Top achievements
Rank 2
answered on 10 Sep 2012, 03:09 PM
Thanks for your reply.

I have had to get this working another way.

Maybe ill come back to this someday 
:)
Tags
Upload
Asked by
Michael
Top achievements
Rank 2
Answers by
Yu
Top achievements
Rank 1
Michael
Top achievements
Rank 2
Share this question
or