Welcome Guest Search | Active Topics | Sign In | Register

Dialog Header Style Options
Sadjad Bahmanpour
Posted: Monday, August 5, 2013 7:33:14 PM
Rank: Member
Groups: Member

Joined: 6/19/2013
Posts: 23
I want to set the Header Style to "text-align: center", I've used

<HeaderStyleActive CssText="text-align: center;" />

But it is not working, I am using v11 on IE 10.

<eo:Dialog ID="dlgPopup" runat="server" AllowMove="false" AllowResize="false" HeaderHtml="Test" InitialState="Visible" ContentUrl="dummy.htm" CloseButtonUrl="Blank" MinimizeButtonUrl="Blank" RestoreButtonUrl="Blank" VerticalAlign="Middle" HorizontalAlign="Center" Height="200px" Width="200px">
<HeaderStyleActive CssText="text-align: center;" />
</eo:Dialog>
eo_support
Posted: Tuesday, August 6, 2013 1:10:13 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

"text-align:center" should work. But you must remove VerticalAlign="Center" and HorizontalAlign="Center" on the dialog.

Thanks!
Sadjad Bahmanpour
Posted: Tuesday, August 6, 2013 2:53:07 PM
Rank: Member
Groups: Member

Joined: 6/19/2013
Posts: 23
I've downloaded v11.0.20.2 and the header is always left align. here is the my aspx:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="WebApplication1.WebForm2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<eo:Dialog ID="dlgPopup" runat="server"
AllowMove="false" AllowResize="false" HeaderHtml="Test" InitialState="Visible" ContentUrl="dummy.htm"
Height="200px" Width="200px">
<HeaderStyleActive CssText="text-align: center;" />
</eo:Dialog>
</form>
</body>
</html>

The code behind is empty.

I'm testing on IE 10 and Chrome 28. Visual Studio 2008 and 2010 on Windows 8; Project Target .Net Framework 3.5 or 4.0
eo_support
Posted: Tuesday, August 6, 2013 8:22:05 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Again we tested your code and it works fine.

Thanks
Sadjad Bahmanpour
Posted: Tuesday, August 6, 2013 9:06:52 PM
Rank: Member
Groups: Member

Joined: 6/19/2013
Posts: 23
Sorry, my bad. I had Theme/Skin which was over-writing my settings. Again sorry to waste you time. Thanks for the fast and great support.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.