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

Regarding RadTreeview click event

7 Answers 108 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Santosh Hegde
Top achievements
Rank 1
Santosh Hegde asked on 22 Dec 2009, 12:32 PM
Hi,

      I have generated RadTreeview in silverlight. Now I want to generate different Radchart for example

RadTreeview is looking like this :

>Enterprise
     > Account Management
     > Onsite Support
     > Data Center
     > Sales


when I click Account management it has to generate Account Management related Radchart when I click Onsite support It has to generate Onsite Support related Radchart. etc...

Please provide me solution for the above problem.

7 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 22 Dec 2009, 02:51 PM
Hi Santosh Hegde,

This scenario is supported from RadTreeView and RadChart controls. Is there any problems that you are facing. Basically you will need to bind the DataContext of the RadChart to the RadTreeView.SelectedItem. This way the data for the charting component will be get from the currently selected item of the treeview.


Please let us know if you need any additional questions regarting this scenario, or if you face any problems implementing it.

Regards,
Valentin.Stoychev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Santosh Hegde
Top achievements
Rank 1
answered on 22 Dec 2009, 03:03 PM
Can you please provide some sample application RadTreeview click  event 
0
Valentin.Stoychev
Telerik team
answered on 22 Dec 2009, 04:01 PM
Hello Santosh Hegde,

In Silverlight the treeview has a selection event, not a click event. To see a code how to deal with the selection event of the Treeview, please check this help article:
http://www.telerik.com/help/silverlight/radtreeview-feautres-treeviewitem-selection.html


Greetings,
Valentin.Stoychev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Santosh Hegde
Top achievements
Rank 1
answered on 24 Dec 2009, 06:00 AM
Hi,

      I have generated RadTreeview in silverlight. Now I want to generate different Radchart for example

RadTreeview is looking like this :

>Enterprise
     > Account Management
     > Onsite Support
     > Data Center
     > Sales


when I click Account management it has to generate Account Management related Radchart when I click Onsite support It has to generate Onsite Support related Radchart. etc...

Hey for this can you please send some sample silverlight application with bind the Datacontext of the radchart and  RadTreeView.SelectedItem. I need one sample application I went through all your Telerik documentation but I did't understand.
0
Valentin.Stoychev
Telerik team
answered on 28 Dec 2009, 10:28 AM
Hello Santosh Hegde,

For more info you can check and theSales Dashboard example code. It is available for download from your account.

Please also find a sample code below that binds to the treeview selected item.


<StackPanel >
    <TextBlock Text="Declare the TreeView:" FontSize="24"/>
    <telerikNavigation:RadTreeView x:Name="RadTreeView1">
        <telerikNavigation:RadTreeViewItem Header="Item1"></telerikNavigation:RadTreeViewItem>
        <telerikNavigation:RadTreeViewItem Header="Item2"></telerikNavigation:RadTreeViewItem>
        <telerikNavigation:RadTreeViewItem Header="Item3"></telerikNavigation:RadTreeViewItem>
        <telerikNavigation:RadTreeViewItem Header="Item4"></telerikNavigation:RadTreeViewItem>
    </telerikNavigation:RadTreeView>
    <TextBlock Text="Binded control:" FontSize="24"/>
    <TextBlock DataContext="{Binding ElementName=RadTreeView1}" Text="{Binding Path=SelectedItem.Header}"></TextBlock>
</StackPanel>

Please let us know if you need more help.

Greetings,
Valentin.Stoychev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Santosh Hegde
Top achievements
Rank 1
answered on 07 Jan 2010, 09:43 AM
Hey where can I get Salesdash board  download 
0
Valentin.Stoychev
Telerik team
answered on 08 Jan 2010, 01:21 PM
Hi Santosh Hegde,

It is available under the downloads section in your Telerik account.

All the best,
Valentin.Stoychev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Santosh Hegde
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Santosh Hegde
Top achievements
Rank 1
Share this question
or