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

3 posts, 0 answers
  1. Richard Koslik
    Richard Koslik avatar
    71 posts
    Member since:
    Apr 2010

    Posted 25 Nov 2015 Link to this post

    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. Richard Koslik
    Richard Koslik avatar
    71 posts
    Member since:
    Apr 2010

    Posted 25 Nov 2015 in reply to Richard Koslik Link to this post

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

    Thanks.

  3. Kendo UI is VS 2017 Ready
  4. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2153 posts

    Posted 25 Nov 2015 Link to this post

    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!
     
Back to Top