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

Don't want remove button field

4 Answers 316 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Saqib
Top achievements
Rank 1
Saqib asked on 14 Mar 2012, 03:10 PM
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.

4 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 15 Mar 2012, 11:56 AM
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!
0
Saqib
Top achievements
Rank 1
answered on 15 Mar 2012, 12:27 PM
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?
0
Accepted
T. Tsonev
Telerik team
answered on 20 Mar 2012, 08:50 AM
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!
0
Saqib
Top achievements
Rank 1
answered on 26 Mar 2012, 11:05 AM
Thanks, it worked... :)
Tags
Upload
Asked by
Saqib
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Saqib
Top achievements
Rank 1
Share this question
or