Prior to the release of 2008Q2, I used a CSS class to position controls on my page whose appearance was managed using FormDecorator.
At its simplest I might have something like this...
| <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="TestBed.WebForm1" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <!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 runat="server"> |
| <title>Untitled Page</title> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <telerik:RadScriptManager ID="ScriptManager" runat="server"> |
| </telerik:RadScriptManager> |
| <telerik:RadFormDecorator ID="FormDecorator" runat="server" Skin="Hay" DecoratedControls="All" /> |
| <asp:Button ID="btnSearch" runat="server" Text="Search" /> |
| </form> |
| </body> |
| </html> |
| |
| |
with this in the code behind...
| protected override void OnInit(EventArgs e) { |
| base.OnInit(e); |
| btnSearch.CssClass = "myClass"; |
| } |
"myClass" might set margins, padding, etc to finely adjust the button on the page.
Since implementing Q2 I can't do this as assigning anything to the CssClass property of my control stops FormDecorator from doing anything with it.
Try it yourself, comment out the assignment to the CssClass property and run the page; you'll have a green button with white text (bog standard 'Hay' skin fare). Recompile the page with the assignment to the button's CssClass and you'll get a standard windows button. This is a
major step backwards.
--
Stuart