Welcome Guest Search | Active Topics | Sign In | Register

Skins not applied if OnPreRender overwritten in Dialog Options
Philipp Jenni
Posted: Monday, August 3, 2015 4:38:59 PM
Rank: Advanced Member
Groups: Member

Joined: 6/9/2007
Posts: 98
Hi,

I have classes that inherits from your controls. The classes applies default values to your controls. When
i override the OnPreRender are skins no more applied on dialog.

Here an example class

Code: C#
public class DialogNoClose : Dialog
{
    protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);
        }
}


And here the Skin File

Code: HTML/ASPX
<wctl:DialogNoClose runat="server" BackColor="white" BorderColor="#bdd1ec" BorderStyle="solid" BorderWidth="1px" CloseButtonUrl=""
    ControlSkinID="none" HorizontalAlign="left" BackShadeColor="gray" BackShadeOpacity="70">
    <HeaderStyleActive CssText="padding-right: 4px; padding-left: 4px; font-weight: bold; padding-bottom: 6px; color: #b1b1b1; font-size: 11px; padding-top: 6px; font-family: verdana" />
    <ContentStyleActive CssText="padding-right: 4px; border-top: #bdd1ec 1px solid; padding-left: 4px; padding-bottom: 4px; font-size: 11px; padding-top: 4px; font-family: verdana" />
    <FooterStyleActive CssText="padding: 10px;" />
</wctl:DialogNoClose>


What i do wrong? Without the PreRender Method in my class it works fine.
eo_support
Posted: Wednesday, August 5, 2015 5:52:26 PM
Rank: Administration
Groups: Administration

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

We tested it and it works fine. Our steps are:

1. Create a theme (named "Theme1") that includes a skin file;
2. Inside the skin file place the above ASPX as well as the @Register directive;
3. Create a new page that includes a blank dialog;
4. Set the @Page directive's Theme property to "Theme1";

We run the page and it works fine. Can you try the same steps and see if it works for you?

Thanks!


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.