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

check ruRemove of radAsyncUpload click or not

1 Answer 110 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Kinjal
Top achievements
Rank 1
Kinjal asked on 12 Aug 2013, 10:43 AM

Hello,

I want to check Remove of RadAsyncUpload is clicked or not to set textbox(ruFakeInput) width according to that condition.

My script is

$telerik.$(document).ready(function() {
               setTimeout(function() {
                   var btnRemove = document.getElementById("<%= btnRomovePhoto.ClientID %>");
                   if (btnRemove) {
                       $('input.ruFakeInput').css("width", "120px");
 
                   }
                   else {
                       $('input.ruFakeInput').css("width", "191px");
 
                   }                   
 
                  //here i check .ruRemove is clicked or not and set 'ruFakeInput' width
 
               }, 200);
           });

i try this way

$telerik.$("button [name=RowRemove]").click(function() {
 
            alert('click');
 
            });

and

$telerik.$(".RadUpload .ruRemove").click(function() {
 
alert('click');//here set $('input.ruFakeInput').css("width""120px");
 
});


but its not working. Any solution?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 13 Aug 2013, 07:13 AM
Hi Kinjal,

Please try the following JavaScript that I have tried.

ASPX:

<telerik:RadAsyncUpload ID="RadAsyuncUpload1" runat="server" OnClientFileUploaded="OnClientFileUploaded1">
</telerik:RadAsyncUpload>

JavaScript:
<script type="text/javascript">
    function OnClientFileUploaded1(sender, args) {
        $telerik.$(".ruRemove").click(function () {
            alert("click");
            $telerik.$(".ruFakeInput").css("width", "200px");
        });
    }
</script>


Thanks,
Shinu.
Tags
AsyncUpload
Asked by
Kinjal
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or