I have a RadTreeList setup that uses a generic list as its datasource. I have a parent and id columns and I verified that parent = id. I set the parent's id column to null.
The only thing that shows in the treelist is the parent row no children, no expand arrow. The datasource is has data. I get no errors.
Any ideas?
Here's my DataSource:
Dim geoDataList As List(Of FacilitiesList) = ds.GetDistanceGridFacilities(oLat, oLon, radius, facilityNumber)
RadGeoTreeList.DataSource = geoDataList
RadGeoTreeList.DataBind()
Here's the TreeList:
<telerik:RadAjaxPanel ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel" runat="server">
<telerik:RadTreeList runat="server" ID="RadGeoTreeList" Visible="true" DataKeyNames="FacilitiesreportingId" ParentDataKeyNames="VERA3" AutoGenerateColumns="false"
Width="100%" Height="400" ShowTreeLines="true">
<Columns>
<telerik:TreeListBoundColumn DataField="FinanceNumber" HeaderText="Finance Number" UniqueName="FinanceNumber"></telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="Origin" HeaderText="Origin" UniqueName="Origin"></telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="Destination" HeaderText="Destination" UniqueName="Destination"></telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="Address" HeaderText="Address" UniqueName="Address"></telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="City" HeaderText="City" UniqueName="City"></telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="State" HeaderText="State" UniqueName="State"></telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="ZipCode" HeaderText="Zip" UniqueName="ZipCode"></telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="Distance" HeaderText="Driving Distance" UniqueName="Distance"></telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="Area" HeaderText="Area" UniqueName="Area"></telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="PFC" HeaderText="PFC" UniqueName="PFC"></telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="OnRolls1" HeaderText="OnRolls" UniqueName="OnRolls"></telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="Residual" HeaderText="Residual" UniqueName="Residual"></telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="Withheld" HeaderText="Withheld" UniqueName="Withheld"></telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="Optional1" HeaderText="OPT" UniqueName="Optional1"></telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="VERA1" HeaderText="VER" UniqueName="VERA1"></telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="VERA3" HeaderText="VERA3" UniqueName="VERA3"></telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="FacilitiesreportingId" HeaderText="FacilitiesreportingId" UniqueName="FacilitiesreportingId"></telerik:TreeListBoundColumn>
</Columns>
</telerik:RadTreeList>
</telerik:RadAjaxPanel>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel" runat="server" />
The only thing that shows in the treelist is the parent row no children, no expand arrow. The datasource is has data. I get no errors.
Any ideas?
Here's my DataSource:
Dim geoDataList As List(Of FacilitiesList) = ds.GetDistanceGridFacilities(oLat, oLon, radius, facilityNumber)
RadGeoTreeList.DataSource = geoDataList
RadGeoTreeList.DataBind()
Here's the TreeList:
<telerik:RadAjaxPanel ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel" runat="server">
<telerik:RadTreeList runat="server" ID="RadGeoTreeList" Visible="true" DataKeyNames="FacilitiesreportingId" ParentDataKeyNames="VERA3" AutoGenerateColumns="false"
Width="100%" Height="400" ShowTreeLines="true">
<Columns>
<telerik:TreeListBoundColumn DataField="FinanceNumber" HeaderText="Finance Number" UniqueName="FinanceNumber"></telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="Origin" HeaderText="Origin" UniqueName="Origin"></telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="Destination" HeaderText="Destination" UniqueName="Destination"></telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="Address" HeaderText="Address" UniqueName="Address"></telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="City" HeaderText="City" UniqueName="City"></telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="State" HeaderText="State" UniqueName="State"></telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="ZipCode" HeaderText="Zip" UniqueName="ZipCode"></telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="Distance" HeaderText="Driving Distance" UniqueName="Distance"></telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="Area" HeaderText="Area" UniqueName="Area"></telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="PFC" HeaderText="PFC" UniqueName="PFC"></telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="OnRolls1" HeaderText="OnRolls" UniqueName="OnRolls"></telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="Residual" HeaderText="Residual" UniqueName="Residual"></telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="Withheld" HeaderText="Withheld" UniqueName="Withheld"></telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="Optional1" HeaderText="OPT" UniqueName="Optional1"></telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="VERA1" HeaderText="VER" UniqueName="VERA1"></telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="VERA3" HeaderText="VERA3" UniqueName="VERA3"></telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="FacilitiesreportingId" HeaderText="FacilitiesreportingId" UniqueName="FacilitiesreportingId"></telerik:TreeListBoundColumn>
</Columns>
</telerik:RadTreeList>
</telerik:RadAjaxPanel>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel" runat="server" />