I have a RadFileExplorer on a page with custom buttons in the toolbar. Logoff and Administration buttons should go to the right. Here is my CSS on the control:
<style type="text/css">
div.RadToolBar .rtbUL { width: 100%; }
div.RadToolBar .rightButton {
float: right;
}
/* Set the desired properties to the custom buttons */
a.adminLoginStyleClass.rtbWrap .rtbText
{
font-size: 12px;
background: url('./images/administration.png') no-repeat left center;
}
a.logoffStyleClass.rtbWrap .rtbText
{
font-size: 12px;
background: url('./images/logoff.png') no-repeat left center;
}
</style>
And my codebehind in the Page_Load:
RadToolBarButton logoffbutton = new RadToolBarButton("Logoff");
logoffbutton.Value = "logoffcommand";
logoffbutton.CssClass = "logoffStyleClass";
logoffbutton.OuterCssClass = "rightButton";
logoffbutton.Attributes.Add("onclick", "window.location.href='EndSession.aspx'");
RadFileExplorer1.ToolBar.Items.Add(logoffbutton);
RadToolBarButton adminLogin = new RadToolBarButton("Administration");
adminLogin.Value = "admincommand";
adminLogin.CssClass = "adminLoginStyleClass";
adminLogin.OuterCssClass = "rightButton";
adminLogin.Attributes.Add("onclick", "window.location.href='Admin'");
RadFileExplorer1.ToolBar.Items.Add(adminLogin);
This works beautifully in Chrome and IE however in FireFox the buttons show in the right on a second row. I have attached a screenshot. Can anyone help?
<style type="text/css">
div.RadToolBar .rtbUL { width: 100%; }
div.RadToolBar .rightButton {
float: right;
}
/* Set the desired properties to the custom buttons */
a.adminLoginStyleClass.rtbWrap .rtbText
{
font-size: 12px;
background: url('./images/administration.png') no-repeat left center;
}
a.logoffStyleClass.rtbWrap .rtbText
{
font-size: 12px;
background: url('./images/logoff.png') no-repeat left center;
}
</style>
And my codebehind in the Page_Load:
RadToolBarButton logoffbutton = new RadToolBarButton("Logoff");
logoffbutton.Value = "logoffcommand";
logoffbutton.CssClass = "logoffStyleClass";
logoffbutton.OuterCssClass = "rightButton";
logoffbutton.Attributes.Add("onclick", "window.location.href='EndSession.aspx'");
RadFileExplorer1.ToolBar.Items.Add(logoffbutton);
RadToolBarButton adminLogin = new RadToolBarButton("Administration");
adminLogin.Value = "admincommand";
adminLogin.CssClass = "adminLoginStyleClass";
adminLogin.OuterCssClass = "rightButton";
adminLogin.Attributes.Add("onclick", "window.location.href='Admin'");
RadFileExplorer1.ToolBar.Items.Add(adminLogin);
This works beautifully in Chrome and IE however in FireFox the buttons show in the right on a second row. I have attached a screenshot. Can anyone help?