Jason
Jason

Reputation: 79

How do I configure the Kendo Upload widget to hide the files list

I'm developing with telerik's kendo framework using their mvvm bindings. I'm having trouble with the configuration of the uploader widget, configured as the following:

 <input name="files"
               id="fileUploader"
               type="file"
               data-role="upload"
               showFileList="false"
               data-async="{ saveUrl: '/api/', removeUrl: 'remove', autoUpload: true}"
               data-bind="enabled: isEnabled, events: { select: eventAddFile }">

How do I configure the showFileList Configuration option to be false?

Upvotes: 2

Views: 1795

Answers (2)

Suraj Nair
Suraj Nair

Reputation: 561

You can use:

data-show-file-list="false"

Upvotes: 5

Jason
Jason

Reputation: 79

The temp solution is this but I would ultimately handle this in the html.

uploader = $('#fileUploader').data("kendoUpload");
uploader.options.showFileList = false;

Upvotes: 0

Related Questions