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

Bind list of current file into kendo upload control manually

7 Answers 298 Views
Upload
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 14 Jan 2013, 11:13 AM
What I want is to bind list of current files into a kendo upload control on load of the page. So this list of files are files that I will add it manually from the controller.

7 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 16 Jan 2013, 03:21 PM
Hi,

The Upload widget does not support data binding. We plan to add such support in the feature, but it will not be available in the short therm.

Our suggestion is to use a Grid for displaying the files that were already uploaded.

Apologies for the caused inconvenience.

Kind regards,
Tsvetomir Tsonev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Taras
Top achievements
Rank 2
answered on 01 May 2017, 07:34 AM
Is it still in plans?
0
Plamen
Telerik team
answered on 01 May 2017, 08:03 AM
Hi,

You can use the file property that is documented here.

Regards,
Plamen
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Taras
Top achievements
Rank 2
answered on 01 May 2017, 08:10 AM

The property 'files' - is what i was trying to use. But it works only if array are defined before widget init.

It's not so useful, as attachments are loaded via ajax and added to array, which won't appear in "upload" widget.

Going further, methods enable(), disable() don't help too.

Only manual creation of the widget after array is loaded helps, but it looks ugly and not obvious. You need to know where to search to find the initialization, instead of usual 'autobind:false' in config and bind the widget when You need.

0
Plamen
Telerik team
answered on 01 May 2017, 09:50 AM
Hello,

Yes indeed with the current version recreation is the only possible solution for your scenario. Please excuse us for this inconvenience. You can submit a feature request about this behavior at our uservoice portal here

Regards,
Plamen
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Riyaz
Top achievements
Rank 1
answered on 22 Mar 2020, 07:20 AM

Hi,

Could we please know if this is available yet?

0
Plamen
Telerik team
answered on 24 Mar 2020, 12:40 PM

Hi,

The discussed behavior is not yet added to the Upload widget so in order to be achieve one should recreate it and set the files propert yto the desired ones.

Regards,
Plamen
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Upload
Asked by
John
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Taras
Top achievements
Rank 2
Plamen
Telerik team
Riyaz
Top achievements
Rank 1
Share this question
or