I have a combobox with a treeview ( tvCategory) inside it. ON the same web page I have a asp panel and on which I have a user Control.
I am trying to use AJAXManagerProxy control. ON treeview node change I want to update panel on the web page. Following code I have used for this.
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="tvCategory">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="tvCategory" />
<telerik:AjaxUpdatedControl ControlID="pnlDetail" LoadingPanelID="RadAjaxLoadingPanel1" />
<telerik:AjaxUpdatedControl ControlID="txtNAme" LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
</telerik:RadAjaxManagerProxy>
On NodeClick event I am trying to set properties of user control.
Protected Sub tvCategory_NodeClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTreeNodeEventArgs)
If e.Node.Value.ToString <> vbNullString Then
Category1.CategoryID = New Guid(e.Node.Value.ToString) 'setting up User control's categoryId property
Category1.LoadCategory = True
End If
pnlDetail.Visible = True
End Sub
Page Load of the user control is called before NodeClick event and I am not able to get the data because I need to know the node selected value to set up on the user control.
How do I do this?
Thanks is advance!!!