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

Possible bug with the upload control inside kendo window

1 Answer 139 Views
Upload
This is a migrated thread and some comments may be shown as answers.
ben
Top achievements
Rank 1
ben asked on 14 Aug 2012, 06:33 PM
Hello there,

I was trying to use the upload control inside a kendo window and I noticed that when a file is selected, the file name together with a remove button will be listed 4 times under the file list.  I'm using the mvc wrapper but it seems like this is the issue with either the window or the upload widget itself.  Please let me know if you need more info on this.  Below is the code.

Thank you,

@(Html.Kendo().Window()
    .Name("window")
    .Content(@<text>
        @(Html.Kendo().Upload()
            .Name("files")
        )
    </text>)
    .Draggable()
    .Resizable()
    .Width(600)
)

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 17 Aug 2012, 03:58 PM
Hello Ben,

That happens because in KendoUI for MVC the widgets placed inside a window component are initialized twice. We will consider this case and try to provide a solution in one of the future releases, but until then I would recommend to put a standard input element as a content and initialize the upload through a jQuery plug-in syntax after window is build.
$("#files").kendoUpload();


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!
Tags
Upload
Asked by
ben
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or