check ruRemove of radAsyncUpload click or not

2 posts, 0 answers
  1. Kinjal
    Kinjal avatar
    3 posts
    Member since:
    Aug 2013

    Posted 12 Aug 2013 Link to this post


    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() {


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

    but its not working. Any solution?
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 13 Aug 2013 Link to this post

    Hi Kinjal,

    Please try the following JavaScript that I have tried.


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

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

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top