Combo Box with a treeview and RadAjaxmanegerProxy

3 posts, 0 answers
  1. A K
    A K avatar
    49 posts
    Member since:
    Apr 2010

    Posted 26 Apr 2010 Link to this post

    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">


           <telerik:AjaxSetting AjaxControlID="tvCategory">


                        <telerik:AjaxUpdatedControl ControlID="tvCategory" />

                        <telerik:AjaxUpdatedControl ControlID="pnlDetail" LoadingPanelID="RadAjaxLoadingPanel1" />

                        <telerik:AjaxUpdatedControl ControlID="txtNAme" LoadingPanelID="RadAjaxLoadingPanel1" />




    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!!!

  2. robertw102
    robertw102 avatar
    265 posts
    Member since:
    Jul 2007

    Posted 26 Apr 2010 Link to this post

    I would suggest creating a method on your user control like "LoadData()", so that the values you passed in the node click event can be used to generate whatever you have in the user control. I don't see any other way of accomplishing what you want to do, since all events are handled after the page load event.

    Another suggestion could be to add the user control to the panel during the tree view's node click event.

    I hope that helps.
  3. A K
    A K avatar
    49 posts
    Member since:
    Apr 2010

    Posted 26 Apr 2010 Link to this post

    When do I call LoadData()? it should be called from a parent page after nodeclick?
Back to Top