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

How to Enable/Disable radtoolbar from client side ?

1 Answer 100 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
M Kumar
Top achievements
Rank 1
Iron
Veteran
M Kumar asked on 17 Apr 2019, 10:51 AM

Hi ,  How to Enable/Disable radtoolbar from client side ?
i am used jquery like below , but not disabled.

var rtbar = $find("ctl00_ContentPlaceHolder1_Searchbar");

 if (SelectedName == "False") {
        $("#rtbar").attr("disabled", true);
         //   $("#rtbar").prop("disabled", true);
       // $("#rtbar").attr("style", "disabled:true;");
    }
    else {
       $("#rtbar").removeAttr('disabled');
        // $("#rtbar").attr("disabled", false);
        //$("#rtbar").attr("style", "disabled:false;");
    }

Thanks
 
   

1 Answer, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 17 Apr 2019, 12:40 PM
Hi,

You can use the built-in client-side API of RadToolbar to enable and disable it:

var rtbar = $find("ctl00_ContentPlaceHolder1_Searchbar");
 
rtbar.set_enabled(false); //will disable it
rtbar.set_enabled(true); //will enable it


Regards,
Rumen
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
ToolBar
Asked by
M Kumar
Top achievements
Rank 1
Iron
Veteran
Answers by
Rumen
Telerik team
Share this question
or