I know I can change the font color of the items within the fieldset but I need to change the fieldset title color to red when there's a certain bad condition.
Printable View
I know I can change the font color of the items within the fieldset but I need to change the fieldset title color to red when there's a certain bad condition.
Hi,
Please look at the example.
Example
Code:<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!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>Ext.Net Example</title>
<style type="text/css">
.my-header .x-fieldset-header-text {
color: red;
}
</style>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" />
<ext:FieldSet ID="FieldSet1" runat="server" Title="Title" />
<ext:Button runat="server" Text="Toggle">
<Listeners>
<Click Handler="FieldSet1.header.toggleClass('my-header');" />
</Listeners>
</ext:Button>
</form>
</body>
</html>