I have created the usercontrol with two ribbonitems but they were appearing in the disabled mode.
I tried to check by placing alert in my js file for isAvailable and isEnabled functions.
Extensions.DynamicControls.prototype.isAvailable =
function DynamicControls$isAvailable(selection)
{
alert('Inside DynamicControls isAvailable');
return true;
}
In this case i am not getting any alert in isAvailable function.
Extensions.DynamicControls.prototype.isEnabled =
function DynamicControls$isEnabled(selection)
{
alert('Inside DynamicControls isEnabled');
return true;
}
I am able to get the alert in isEnabled function.
Please let me know what i need to make them enabled.
Apart from this, i have seen page source using firebug- On selection of these two created buttons usercontrol buttons, i found why is that class by default applied? If i try by removing it, the buttons are enabled.
As of now these are just visible as labels in the ribbon. Is any css also required to make these look like any other buttons? Please suggest.