Where is AfterSelect Radtreeview?

10 posts, 0 answers
  1. Sensi
    Sensi avatar
    2 posts
    Member since:
    Sep 2014

    Posted 26 Sep 2014 Link to this post

    Hi all,
    I am converting some code from winforms to radwinforms but i have a problem with some code using AfterSelect from winforms treeview.
    I can't find AfterSelect in the radtreeview so how can i get my code working when my old code is using AfterSelect?

    Have you guys renamed that property to something else?


    Gr,
    B
  2. Sensi
    Sensi avatar
    2 posts
    Member since:
    Sep 2014

    Posted 26 Sep 2014 Link to this post

    Nevermind i found it
  3. Dimitar
    Admin
    Dimitar avatar
    1700 posts

    Posted 30 Sep 2014 Link to this post

    Hi Sensi,

    Thank you for writing.

    My best guess is that you have used the SelectedNodeChanged event which is suitable for this case. In addition other useful nodes events are listed here: Events.

    Do not hesitate to contact us if you have other questions.
     
    Regards,
    Dimitar
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  4. harshal
    harshal avatar
    13 posts
    Member since:
    Nov 2016

    Posted 06 Jan Link to this post

    Hi,

     

    What is workaround for OnAfterSelect evet for RadTreeView? Even I am facing the same issue in upgrading to Telerik from other provder.

    Please suggest

     

    Thanks,

    Harshal

  5. Dimitar
    Admin
    Dimitar avatar
    1700 posts

    Posted 06 Jan Link to this post

    Hi Harshal,

    You can use the SelectedNodeChanged event instead.

    I hope this information is useful. Let me know if you need further assistance.

    Regards,
    Dimitar
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  6. harshal
    harshal avatar
    13 posts
    Member since:
    Nov 2016

    Posted 06 Jan in reply to Dimitar Link to this post

    How can i override that function in multilevel
  7. harshal
    harshal avatar
    13 posts
    Member since:
    Nov 2016

    Posted 06 Jan Link to this post

    i have binded radtreeview with my data. but I am not able to see the current selection? Any suggestion what is going wrong?

     

  8. Dimitar
    Admin
    Dimitar avatar
    1700 posts

    Posted 06 Jan Link to this post

    Hello Harshal,

    If you are using the MultiSelect mode you can use the following code to retrieve the selected nodes:
    public RadForm1()
    {
        InitializeComponent();
        radTreeView1.MultiSelect = true;
        radTreeView1.SelectedNodesChanged += RadTreeView1_SelectedNodesChanged;
    }
     
    private void RadTreeView1_SelectedNodesChanged(object sender, Telerik.WinControls.UI.RadTreeViewEventArgs e)
    {
        foreach (var item in radTreeView1.SelectedNodes)
        {
            Console.WriteLine(item.Text);
        }
    }

    Please note that I am not sure how you are binding the tree view and what you expect to get. Could please specify your exact requirement?

    I hope this will be useful. I am looking forward to your reply.

    Regards,
    Dimitar
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  9. harshal
    harshal avatar
    13 posts
    Member since:
    Nov 2016

    Posted 08 Jan in reply to Dimitar Link to this post

    I have started a new thread..  please go through it to understand more about my code..

    http://www.telerik.com/forums/radtreeview---bind-custom-nodes

  10. Dimitar
    Admin
    Dimitar avatar
    1700 posts

    Posted 09 Jan Link to this post

    Hello Harshal,

    Ok, someone will review the other thread and we will discuss this there.  

    Regards,
    Dimitar
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top