Hiding Upload button of kendo upload

Shital Kadam picture Shital Kadam · Dec 17, 2015 · Viewed 7.8k times · Source

I want to hide the 'Upload file' button of kendo upload since I am using my custom button for uploading file.

I have written the code on select file of kendo upload as,

function onSelect() {
    $('.k-upload-selected').css("display", "none");
}

I have tried with the following css also,

.k-upload-selected{
    display: none;
}

But the upload button is still there...

Please help me..enter image description here

Answer

M. Noreikis picture M. Noreikis · Dec 17, 2015

You can simply use

$(".k-button.k-upload-button").css("visibility", "hidden");

after initializing the widget. Example Dojo