Hi,
I am using the RadToolBar in my project while generating the buttons dynamicly:
var toolBarButton = new Telerik.Web.UI.RadToolBarButton();
toolBarButton.set_text(currentState.Text);
toolBarButton.set_enabled(currentState.Enabled);
toolBarButton.set_imageUrl(currentState.ImageUrl);
toolBarButton.set_toolTip(currentState.Tooltip);
toolBarButton.set_commandName(currentState.CommandName);
toolBarButton.set_commandArgument(commandArgs + currentState.OperationType);
The problem is the tooltip goes to the IMG 'alt' attribute instead the 'title' attribute. the IMG tag does not have the 'title' attribute.
This is telerik code taken from RadToolBarScripts.js:
_renderImage:function(b){var a=this.get_enableImageSprite();
var c=a?"span":"img";
b[b.length]="<"+c+" class='rtbIcon'";
if(a){b[b.length]="'></span>";
}else{b[b.length]=" src='";
b[b.length]=this._getCurrentImageUrl();
b[b.length]="' alt='";
b[b.length]=this.get_toolTip();
b[b.length]="'/>";
}}
you can see only alt, no title.
this is taken from package Q2 and Q3 2013
I am using the RadToolBar in my project while generating the buttons dynamicly:
var toolBarButton = new Telerik.Web.UI.RadToolBarButton();
toolBarButton.set_text(currentState.Text);
toolBarButton.set_enabled(currentState.Enabled);
toolBarButton.set_imageUrl(currentState.ImageUrl);
toolBarButton.set_toolTip(currentState.Tooltip);
toolBarButton.set_commandName(currentState.CommandName);
toolBarButton.set_commandArgument(commandArgs + currentState.OperationType);
The problem is the tooltip goes to the IMG 'alt' attribute instead the 'title' attribute. the IMG tag does not have the 'title' attribute.
This is telerik code taken from RadToolBarScripts.js:
_renderImage:function(b){var a=this.get_enableImageSprite();
var c=a?"span":"img";
b[b.length]="<"+c+" class='rtbIcon'";
if(a){b[b.length]="'></span>";
}else{b[b.length]=" src='";
b[b.length]=this._getCurrentImageUrl();
b[b.length]="' alt='";
b[b.length]=this.get_toolTip();
b[b.length]="'/>";
}}
you can see only alt, no title.
this is taken from package Q2 and Q3 2013