Don't want remove button field

5 posts, 1 answers
  1. Saqib
    Saqib avatar
    12 posts
    Member since:
    Feb 2012

    Posted 14 Mar 2012 Link to this post

    Is there any way there i can exclude the field containing remove button.

    i did something like this.
    $("input:file").kendoUpload({

                async: {

                    autoUpload: true
                },
                select: onSelect

            });
         });  
        function onSelect() {
            $('.k-button').click();
            return $("#personal_image_submit_add").trigger("click");
        }

    i did    $('.k-button').click(); to remove the field. but it doesn't work. Need suggestion in this regard.
  2. T. Tsonev
    Admin
    T. Tsonev avatar
    2831 posts

    Posted 15 Mar 2012 Link to this post

    Hi,

    The remove button won't be displayed if the async.removeUrl option is not defined.

    I hope this helps.

    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!
  3. Saqib
    Saqib avatar
    12 posts
    Member since:
    Feb 2012

    Posted 15 Mar 2012 Link to this post

    sorry to bother you but i didn't get you. I didn't used removeUrl option in my code. Do i need to make removeUrl: false so that i shouldn't see the remove filed in my case?
  4. Answer
    T. Tsonev
    Admin
    T. Tsonev avatar
    2831 posts

    Posted 20 Mar 2012 Link to this post

    Hello,

    I assume you're using synchronous upload. In this case the remove button can be configured by using this CSS rule:
    .k-upload .k-upload-action {
        display: none;
    }


    This should hide the Remove button.

    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!
  5. Saqib
    Saqib avatar
    12 posts
    Member since:
    Feb 2012

    Posted 26 Mar 2012 Link to this post

    Thanks, it worked... :)
Back to Top