Hi,
I have a Telerik RadTree bound to an XMLDataSource. I want to set a node's text to consist of 2 attributes (number and name)
See <telerik:RadTreeNodeBinding>
Example:
"1. How are you?" and "2. How old are you?"
XML:
<questions>
<question name="How are you?" number="1" imageurl="">
</question>
<question name="How old are you?" number="2" imageurl="">
</question>
</questions>
ASPX:
<telerik:RadTreeView ID="RadTreeView1" runat="server">
<DataBindings>
<telerik:RadTreeNodeBinding DataMember="questions" Text="Questions" ImageUrl="/questions.png" Expanded="false" />
<telerik:RadTreeNodeBinding DataMember="question" Text='[<%# DataBinder.Eval("number")%>].[<%# DataBinder.Eval("name")%>]' ImageUrlField="imageurl" FormatString="{0}" Expanded="false" />
</DataBindings>
</telerik:RadTreeView>