PDA

View Full Version : [CLOSED] HOW TO SET treepanel's title's text's css?



tobros
Dec 19, 2013, 7:48 AM
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm10.aspx.cs" Inherits="TobrosCWT.test.WebForm10" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
<style type="text/css">
.header111{ font-size:20px;line-height: 20px;color: red;}
</style>
</head>
<body>
<form id="form1" runat="server">
<ext:ResourceManager runat="server" SourceFormatting="True"></ext:ResourceManager>
<ext:TreePanel runat="server" Title="here is title" HeaderTextCls="header111">
<Root>
<ext:Node Text="node" NodeID="1">
<Children>
<ext:Node Text="child" NodeID="2" Leaf="True"></ext:Node>
</Children>
</ext:Node>
</Root>
</ext:TreePanel>
</form>
</body>
</html>


above code does not work well.

Daniil
Dec 19, 2013, 1:54 PM
Hi @tobros,

Please use:

Cls="header111"

.header111 span.x-header-text {
font-size: 20px;
line-height: 20px;
color: red;
}

HeaderTextCls is not used anywhere. I think we will just remove it. Thank you for the report.