or

When I am loading the page I want to select a value in Combobox with Treeview.
I am using following code, It selects correct value from a tree view but combo box doesn’t show this selected value, it always says “Select”.
How to I a show selected value on page load?
I am using following code.
Dim tvCategory As RadTreeView = DirectCast(cboCategory.Items(0).FindControl("tvCategory"), RadTreeView)
tvCategory.FindNodeByValue(LCase(project.SubscriberCategory.Id.ToString)).Selected = True
| <div style="width:100%;overflow:auto;"> |
| <telerik:RadGrid ID="RadGrid1" Width="3000px" AllowPaging="True" PageSize="15" runat="server" AllowSorting="true" |
| GridLines="None" DataSourceID="linq_mySP"> |
| <MasterTableView Width="100%" /> |
| <PagerStyle Mode="NextPrevAndNumeric" /> |
| <FilterMenu EnableTheming="True"> |
| <CollapseAnimation Duration="200" Type="OutQuint" /> |
| </FilterMenu> |
| </telerik:RadGrid> |
| </div> |
| <asp:LinqDataSource AutoPage="True" ID="linq_mySP" runat="server"></asp:LinqDataSource> |
| Imports System.Data |
| Imports Telerik.Web.UI |
| Partial Class gridPages_telerikGrid |
| Inherits System.Web.UI.Page |
| Protected Sub linq_mySP_Selecting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.LinqDataSourceSelectEventArgs) Handles linq_mySP.Selecting |
| Using context As New DataClassesDataContext |
| Dim fromdate As DateTime = DateAdd(DateInterval.Year, -5, DateTime.Now) |
| Dim todate As DateTime = DateTime.Now |
| e.Result = context.spTest(49, fromdate, todate) |
| End Using |
| End Sub |
| End Class |