or
<body> <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <div> <telerik:RadComboBox ID="testCombo" runat="server" ShowToggleImage="false" EnableLoadOnDemand="true" Width="200px" AllowCustomText="false" AppendDataBoundItems="true"> <Items> <telerik:RadComboBoxItem Text="Eingabe zur Suche..." Selected="true" Font-Italic="true" ForeColor="Silver" /> </Items> <WebServiceSettings Path="~/Services/AgentService.svc" Method="GetAgents" /> </telerik:RadComboBox> </div> </form> </body>[ServiceContract( Namespace = "http://TelerikAjaxTest/AgentService" )] [AspNetCompatibilityRequirements( RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed )] public class AgentService { [OperationContract] public RadComboBoxData GetAgents( RadComboBoxContext context ) { List<RadComboBoxItemData> list = new List<RadComboBoxItemData>() { new RadComboBoxItemData { Text = "Value1", Value = "Value1" }, new RadComboBoxItemData { Text = "Value2", Value = "Value2" }, new RadComboBoxItemData { Text = "Value3", Value = "Value3" }, new RadComboBoxItemData { Text = "Value4", Value = "Value4" }, new RadComboBoxItemData { Text = "Value5", Value = "Value5" } }; RadComboBoxData result = new RadComboBoxData(); result.Items = list.ToArray(); result.EndOfItems = true; return result; } }<system.serviceModel> <behaviors> <endpointBehaviors> <behavior name="aspNetAjaxBehavior"> <enableWebScript/> </behavior> </endpointBehaviors> </behaviors> <services> <service name="TelerikAjaxTest.Services.AgentService"> <endpoint address="" behaviorConfiguration="aspNetAjaxBehavior" binding="webHttpBinding" bindingConfiguration="webBinding" contract="TelerikAjaxTest.Services.AgentService"/> </service> </services> <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/> <bindings> <webHttpBinding> <binding name="webBinding"> <security mode="Transport"> </security> </binding> </webHttpBinding> </bindings></system.serviceModel><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title> <style type="text/css"> .green { background-color: green; } .red { background-color: red; } </style></head><body> <form id="form1" runat="server"> <div> <asp:UpdatePanel runat="server"> <ContentTemplate> <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> <telerik:RadTreeView ID="RadTreeView1" runat="server" DataFieldID="UniqueId" DataFieldParentID="parentid" DataTextField="NodeText" DataValueField="UniqueId"> <ContextMenus> </ContextMenus> <DataBindings> <telerik:RadTreeNodeBinding ContentCssClassField="CssClass" /> </DataBindings> </telerik:RadTreeView> </ContentTemplate> </asp:UpdatePanel> <asp:LinkButton Text="Change Color" runat="server" ID="changeLink"/> </div> </form></body></html>Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load If Not Page.IsPostBack Then Dim values = {New With {.UniqueId = "0", .parentid = Nothing, .NodeText = "Node 1", .CssClass = "red"}, New With {.UniqueId = "1", .parentid = Nothing, .NodeText = "Node 1-1", .CssClass = "green"} } RadTreeView1.DataSource = values RadTreeView1.DataBind() End IfEnd SubProtected Sub changeLink_Click(sender As Object, e As System.EventArgs) Handles changeLink.Click 'None of these color the entire row. what's the correct syntax to use? RadTreeView1.FindNodeByValue("1").BackColor = Color.Red RadTreeView1.FindNodeByValue("1").CssClass = "red"End Sub