Radtreeview expand mode not working.

9 posts, 0 answers
  1. Nagendra
    Nagendra avatar
    35 posts
    Member since:
    Jan 2011

    Posted 09 Jul 2011 Link to this post

    Hi friends,
           In my page i used radtreeview and binded this radtreeview dynamically with database. when i click on expand symbol (+) radtreeview  not expanding. when i click on root node (AF - Angel Falls) it's working fine. Root node expand not working at first time after that it's working fine.

    Please find the screen shot of my radtreeview and please provide me the solution.


    Thanks,
    Nagendra.
  2. Nikolay Tsenkov
    Admin
    Nikolay Tsenkov avatar
    734 posts

    Posted 13 Jul 2011 Link to this post

    Hello Nagendra,

    Is there an error thrown, when you try to expand using the plus sign?
    Could you, please, post an example reproducing the problem?


    Regards,
    Nikolay Tsenkov
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  3. Nagendra
    Nagendra avatar
    35 posts
    Member since:
    Jan 2011

    Posted 13 Jul 2011 Link to this post

    Hi Nikolay Tsenkov,

      No error in my page, but not working plus sign(+) in radtreeview.
     
      Radtreeview binded dynamically, but it's expand feature(+) is not working.
     
    Thanks,
    Nagendra.
  4. Nagendra
    Nagendra avatar
    35 posts
    Member since:
    Jan 2011

    Posted 18 Aug 2011 Link to this post

    Hi Nikolay Tsenkov,
                            Binded radtreeview dynamically like this.

      BuildTreeView function for binding parent nodes to radtreeview
                
    Private Sub BuildTreeView()
          Dim data As DataTable = GetData(New MySqlCommand("SELECT distinct null as 'parent_id', vc.id as 'child_id', vc.code as 'child_code' from vw_community vc INNER JOIN min_com_lots mcl ON mcl.community_id = vc.id INNER JOIN tsm_schedule ts ON mcl.com_lot_id = ts.com_lot_id INNER JOIN tsm_schedule_activities_publish_s tsaps ON tsaps.schedule_id = ts.schedule_id And tsaps.user_id =" + Session("SelUserID")))
          For Each row As DataRow In data.Rows
              Dim node As New RadTreeNode()
              node.ContextMenuID = "contextMenu1"
              node.Text = row("child_code").ToString()
              node.Value = row("child_id").ToString()
              'TreeView.Nodes.Add(node)
              RadTreeView1.Nodes.Add(node)
              node.ExpandMode = True
              RadTreeView1.Nodes.Add(node)
          Next
      End Sub
               function for radtreeview node click
    Protected Sub RadTreeView1_NodeClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTreeNodeEventArgs) Handles RadTreeView1.NodeClick
            ddlFilters.SelectedItem.Text = "Select Filter"
            PopulateNodeOnDemand(e, TreeNodeExpandMode.ServerSideCallBack)
        End Sub
    same thing i written for radteeview node expand
    Protected Sub RadTreeView1_NodeExpand(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTreeNodeEventArgs)
            ddlFilters.SelectedItem.Text = "Select Filter"
            PopulateNodeOnDemands(e, TreeNodeExpandMode.ServerSideCallBack)
            contextmenu()
        End Sub
    this function is not responding at parent level(at first time), but when i clicking on parent node node click function working fine. After node click event node expand event working fine.

    Thanks,
    Nagendra.
  5. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 24 Aug 2011 Link to this post

    Hi Nagendra,

    I tried to reproduce the issue that you encounter but with no success. Please take a look at the page that I have attached. When I click on a node it expands the node and populates it and when I click on the plus/minus sign it expands/collapses the node as expected. For the test I used the 2011.2.712.35 version of the controls.  

    Regards,
    Kate
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  6. Nagendra
    Nagendra avatar
    35 posts
    Member since:
    Jan 2011

    Posted 13 Sep 2011 Link to this post

    Hi,
        I checked your sample code, it's working fine.
        I implemented same thing in my project with radtreeview properties, it's not working.

        I will provide the login access to my site. Please check the my issue.
       
      
    Thanks and Regards,
    Nagendra.
        
  7. Nagendra
    Nagendra avatar
    35 posts
    Member since:
    Jan 2011

    Posted 17 Sep 2011 Link to this post

    Hi,

    resolved my problem..


    Thanks,
    Nagendra.
  8. leaders
    leaders avatar
    6 posts
    Member since:
    May 2011

    Posted 26 Feb 2012 Link to this post

    Hi Nagendra, 

    I'm facing same issue could you please explain the solution.

    Thanks
  9. Zaharah
    Zaharah avatar
    2 posts
    Member since:
    May 2012

    Posted 03 May 2012 Link to this post

    set the node  ExpandMode property to ServerSide.
Back to Top