My code as I see it is exactly the same as the demo explaining this (I think).
Hope someone can find out why mt Radtree is not displaying any data.
This is my code:
and this is my DB table structure
I am calling DataBind() on PageLoad but my tree returns with 0 nodes.
This looks simple enough but I can not find out what I am doing wrong.
reg.
Axel
Hope someone can find out why mt Radtree is not displaying any data.
This is my code:
| <telerik:RadTreeView ID="RadTreeView1" runat="server" Width="100%" Height="250px" |
| DataFieldID="code" DataFieldParentID="parentcode" |
| DataTextField="absencereasonname" DataValueField="code" |
| DataSourceID="LinqDataSource1"> |
| <DataBindings> |
| <telerik:RadTreeNodeBinding Depth="0" Expanded="true" /> |
| </DataBindings> |
| </telerik:RadTreeView> |
| <asp:LinqDataSource ID="LinqDataSource1" runat="server" |
| ContextTypeName="Orbit.Benjamin.DB.PartyDataContext" |
| TableName="AbsenceReasons" |
| Select="new (code, absencereasonname, parentcode)"> |
| </asp:LinqDataSource> |
and this is my DB table structure
| [code] [nvarchar](10) NOT NULL, |
| [absencereasonname] [nvarchar](100) NULL, |
| [parentcode] [nvarchar](10) NULL, |
I am calling DataBind() on PageLoad but my tree returns with 0 nodes.
This looks simple enough but I can not find out what I am doing wrong.
reg.
Axel