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

how to get id of k-upload-action button?

2 Answers 227 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Richard Koslik
Top achievements
Rank 1
Richard Koslik asked on 25 Nov 2015, 09:53 AM

Hello,

is there a way to get the id of the pressed action button if using a template?

<script id="fileUploadTemplate" type="text/x-kendo-template">
  <span class='k-progress'></span>
  <div class='file-wrapper'>
    <text class='file-heading file-name-heading'>Name: #=name#</text>
    <text class='file-heading file-size-heading'>Size: #=size# bytes</text>
    <strong class="k-upload-status">
      <span class="k-upload-pct"></span>
      <button type="button" class="k-button k-button-bare k-upload-action">
        <span class="k-icon k-i-close k-delete" title="entfernen"></span>
      </button>
      <button id="BUTTON_TWO" type="button" class="k-button k-button-bare k-upload-action" style="left:-70px;">
        <span class="k-icon k-i-arrow-s k-delete" title="entfernen"></span>
      </button>
    </strong>
  </div>
</script>

 

I want to get the id in the remove function of the widget, so i can pass individual data to the servers "remove"-Action.
The functions event.sender is not the pressed button...

Any way?

The reason why i need it is to have a button for previewing allready uploaded files from this widget dialog...

Thank you,

Richard.

 

2 Answers, 1 is accepted

Sort by
0
Richard Koslik
Top achievements
Rank 1
answered on 25 Nov 2015, 10:44 AM

question closed....i will use a custom button to call my function...

Thanks.

0
Dimiter Madjarov
Telerik team
answered on 25 Nov 2015, 12:23 PM

Hello Richard,

Thanks for the update. Let us know if you experience other issues.

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Upload
Asked by
Richard Koslik
Top achievements
Rank 1
Answers by
Richard Koslik
Top achievements
Rank 1
Dimiter Madjarov
Telerik team
Share this question
or