Is it possible to put html in the status bar.
IE: sender.set_status("<strong>Boo</strong>");
It would be nice to colour it red and centre text as a warning.
Andy
7 Answers, 1 is accepted
Hello Andy,
The status bar of the RadWindow is an input element and does not take HTML.
What I can suggest is using jQuery to set the HTML you want. For example:
var
statusCell = $telerik.$(
".rwStatusbar td"
, sender.get_popupElement()).first();
statusCell.html(
"<strong>I am the desired bold text</strong>"
);
Regards, Marin Bratanov
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Andy
Andy
Hi Andy,
On my end, padding seemed to work fine:
<
telerik:RadWindow
ID
=
"RadWindow1"
runat
=
"server"
VisibleOnPageLoad
=
"true"
OnClientShow
=
"OnClientShow"
></
telerik:RadWindow
>
<
script
type
=
"text/javascript"
>
function OnClientShow(sender, args) {
var statusCell = $telerik.$(".rwStatusbar td", sender.get_popupElement()).first();
statusCell.html("<
strong
style=\"padding-left: 50px;\">I am the desired bold text</
strong
>");
}
</
script
>
I advise examining the resulting HTML in the dev toolbar of your browser to see what CSS rules apply to it so you can devise your own set accordingly.
Regards,
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Andy
Hello Andy,
Have you tried something like this:
statusCell.html(
"<div style=\"width: 100%; height: 100%;text-align: center; font-weight: bold;\">I am the desired bold text</div>"
);
Also, not that the statusbar cell is only 18px tall, so having line breaks is not likely to work out nicely.
Regards, Marin Bratanov
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Andy