This is a migrated thread and some comments may be shown as answers.

Where is AfterSelect Radtreeview?

9 Answers 137 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Sensi
Top achievements
Rank 1
Sensi asked on 26 Sep 2014, 08:47 AM
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

9 Answers, 1 is accepted

Sort by
0
Sensi
Top achievements
Rank 1
answered on 26 Sep 2014, 12:36 PM
Nevermind i found it
0
Dimitar
Telerik team
answered on 30 Sep 2014, 02:11 PM
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.
 
0
harshal
Top achievements
Rank 1
answered on 06 Jan 2017, 10:09 AM

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

0
Dimitar
Telerik team
answered on 06 Jan 2017, 10:47 AM
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.
0
harshal
Top achievements
Rank 1
answered on 06 Jan 2017, 11:03 AM
How can i override that function in multilevel
0
harshal
Top achievements
Rank 1
answered on 06 Jan 2017, 11:05 AM

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

 

0
Dimitar
Telerik team
answered on 06 Jan 2017, 02:32 PM
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.
0
harshal
Top achievements
Rank 1
answered on 09 Jan 2017, 04:59 AM

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

0
Dimitar
Telerik team
answered on 09 Jan 2017, 09:41 AM
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.
Tags
Treeview
Asked by
Sensi
Top achievements
Rank 1
Answers by
Sensi
Top achievements
Rank 1
Dimitar
Telerik team
harshal
Top achievements
Rank 1
Share this question
or