upload mvvm template

1 Answer 142 Views
MVVM Upload
Hector
Top achievements
Rank 1
Hector asked on 19 Nov 2021, 03:05 AM

I am trying to remove the default upload and clear button using mvvm ?

 

<input id="files" name="files"
           type="file"
           data-role="upload"
           data-async="{ saveUrl: '@Url.Page("/FADT")?handler=FileUpload',  autoUpload: false, multiple:false }"
           data-bind="visible: isVisible,
                            enabled: isEnabled,
                            events: { select: onSelect,  cancel: onCancel, complete: onComplete, success: onSuccess, upload: onUpload }">

 

how do I do that ? Can I use a template with MVVM if so how ?

 

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 23 Nov 2021, 11:04 AM

Hello, Hector,

Currently there is no template for the buttons in the Upload. If you wish to hide the default ones and use your own, please refer to this How-To article

Let me know if that works for you.

Regards,
Martin
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
MVVM Upload
Asked by
Hector
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or