Hello Christian,
If you wish such a button to be disabled, please initialize it from a button or input element, e.g.:
$("#toolbar").jqxToolBar({
width: '100%',
height: 35,
tools: 'custom',
initTools: function(type, index, tool, menuToolIninitialization) {
switch (index) {
case 0:
var button = $("<button id='custom1'>;-)</button>");
tool.append(button);
button.jqxButton({
height: 23,
width: 20,
disabled: true
});
button.on('click', function() {
alert('i am not disabled');
});
break;
}
}
});
Best Regards,
Dimitar
jQWidgets team
http://www.jqwidgets.com/