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

[Solved] Custom events for Telerik Upload Control in MVC3

0 Answers 53 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dheyvendaran
Top achievements
Rank 1
Dheyvendaran asked on 13 Aug 2012, 06:01 AM

I was trying to use Telerik Upload control in my project. In that, i need to use custom button. The button is shown when upload control has atleast 1 file. If no file is present then the custom button to be hidden.

Here is my View code : (note: createitems is my button ID)

$(document).ready(function () {
        $('#createitems').hide();
    });
 
function UploadSuccess(e) {
$('#createitems').show();
}
 
function UploadRemove(e) {
        var files = e.files;
        if (files.length > 0) {
            $('#createitems').show();
        }
        else {
            $('#createitems').hide();
        }
    }

Tags
General Discussions
Asked by
Dheyvendaran
Top achievements
Rank 1
Share this question
or