Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2165
Deactivate buttons
posted

According to http://help.infragistics.com/jQuery/2014.1/ui.igtoolbar, I think this should deactivate all buttons:

var toolbars = $(".ui-igtoolbar");
$.each(toolbars, function(key, value) {
    $(value).igToolbar("deactivateAll");
});

But, it doesn't :( How to deactivate all buttons of all toolbars of an igHtmlEditor? Thanks.

  • 2165
    Verified Answer
    Offline posted

    It is not documented -till now :) - but I found my own solution:

    var toolbars = $(".ui-igtoolbar");
    $.each(toolbars, function(key, value) {
       var items = $(value).igToolbar("option", "items");
       $.each(items, function(k, item) {
          $(value).igToolbar('disableItem', item.settings.name, true);
       });
    });

    Hope this can helps someone.