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

Associate the context of an Upload widget to a new widget's html

3 Answers 88 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 03 Nov 2016, 10:34 PM

I realize there is a way to populate a Kendo Upload with initial files, however I'm trying to take this a step further.

In the app I'm building I have a drawer widget that allows the user to toggle it from visible to hidden and due to the nature of this environment the drawer is actually destroyed between toggle. It's not a problem for the rest of my data because I'm using MVVM with KnockoutJS to simply rebind the content in the drawer when shown again. The Kendo Upload is inside this drawer and I need the ability for the user to be able to toggle the drawer while the Uploader is uploading (which means the Uploader html will be removed from the DOM).

I noticed that once an upload is started the Kendo Upload actually continues to work even though the associated HTML doesn't exist anymore which sounds promising. I believe the solution is to figure out a way to associate a new Upload html with an existing Kendo Upload context.

I do realize this isn't a supported feature, but was hoping you could help point me in the right direction. I believe I have the skill necessary to tackle this, but any help would be appreciated.

Thanks.

3 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 04 Nov 2016, 09:27 AM

Hello Nick,

We cannot provide assistance regarding the mentioned scenario. If you are experiencing any difficulties with the built in widget features, do not hesitate to contact us.

Regards,
Dimiter Madjarov
Telerik by Progress
 
Build rich, delightful, *native* Angular 2 apps with Kendo UI for Angular 2. Try it out today! Kendo UI for Angular 2 (currently in beta) is a jQuery-free toolset, written in TypeScript, designed from the ground up to offer true, native Angular 2 components.
 
0
Nick
Top achievements
Rank 1
answered on 04 Nov 2016, 02:16 PM

Thanks for your reply, but judging by your reply I'm not confident that there is anything that you could possibly help me with.

After some additional research it appears that jQuery append() works excellent to move the widget around the DOM.

Before my drawer closes I move the Uploader to another place on the page (hidden of course) and once the drawer opens again I move it back. There's absolutely no feature or performance issues in doing so.

Hopefully this helps someone else.

0
Dimiter Madjarov
Telerik team
answered on 04 Nov 2016, 02:26 PM

Hello Nick,


Thank you for the update. I am glad the issue is resolved.


Regards,

Dimiter Madjarov
Telerik by Progress
 
Build rich, delightful, *native* Angular 2 apps with Kendo UI for Angular 2. Try it out today! Kendo UI for Angular 2 (currently in beta) is a jQuery-free toolset, written in TypeScript, designed from the ground up to offer true, native Angular 2 components.
 
Tags
Upload
Asked by
Nick
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Nick
Top achievements
Rank 1
Share this question
or