1

我正在尝试在页面加载时绑定 radtreeview,如下所示,但我无法在页面上看到带有绑定数据的 radtreeview,我能够看到列表 .ParentId、.Id、.Name、.ParentName 中的数据

有人可以调查一下吗?

  < telerik:RadTreeView ID="rtvMyConnections" runat="server" ToolTip="" Skin="DV" EnableEmbeddedSkins="false"  CheckBoxes="true" >
    </telerik:RadTreeView>



Dim lstresult As New List(Of MyEntity)

Dim svcProxy As IConnectionService = CreateConnectionChannelFactory()

lstresult = svcProxy.LoadMyConnectionsXML()
rtvMyConnections.DataTextField = "ParentName"
rtvMyConnections.DataFieldParentID = "ParentId"
rtvMyConnections.DataFieldID = "Id"
rtvMyConnections.DataValueField = "Name"
rtvMyConnections.DataSource = lstresult
rtvMyConnections.DataBind()
4

0 回答 0