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

DrillDown Help

6 Answers 69 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
IT
Top achievements
Rank 1
IT asked on 18 Aug 2016, 03:53 PM

Hi,

I'm trying to get a Drilldown working on WinForms with VB. I've customised it as needed, however I'm getting an error when trying to DrillDown as below:

Unable to cash object of type 'System.Data.DataRowView' to type "TestApp.DrillDownDataInfo'

I've looked at the guide here - http://docs.telerik.com/devtools/winforms/chartview/features/drill-down

However I do not seem to have a access to the sample files:

SamplesCS.ChartView.Features.DJIAD.csv

SamplesCS.ChartView.Features.DJIAM.csv

SamplesCS.ChartView.Features.DJIA.csv

So I haven't been able to look at it properly. Any help on this would be much appreciated or even a working demo in VB?

Thanks in advance.

6 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 19 Aug 2016, 12:31 PM
Hello Shane,

Thank you for writing. 

You can find a complete C#/VB example in our Demo application >> ChartView >> Drill-down example. The demo solution is located in the installation folder which is usually located at the following path: C:\Program Files (x86)\Telerik\UI for WinForms Q2 2016\Examples\QuickStart\Bin

I hope this information helps. Should you have further questions I would be glad to help.

Regards,
Dess
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
0
IT
Top achievements
Rank 1
answered on 25 Aug 2016, 03:58 PM

Ok,

 

I've got the demo working, but I now need to make it work with 3 binding sources from a database rather than the CSV files and can't get it to work. I've got my binding sources working and it shows the first/second/third charts correctly, but it is showing all data as I can't figure out how to pass the value that is clicked on the chart to filter the second binding source.

Thanks
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 26 Aug 2016, 08:26 AM
Hello Shane, 

Thank you for writing back. 

In the RadChartView.Drill event you have access to the clicked point by accessing the DrillEventArgs.SelectedPoint property:
((CategoricalDataPoint)e.SelectedPoint).Category

I hope this information helps. If you have any additional questions, please let me know.

Regards,
Dess
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
0
IT
Top achievements
Rank 1
answered on 26 Aug 2016, 08:41 AM
Sorry, how would I use that - if I try and use that to get a variable I just get the error "CategoricalDataPoint" is a class type and cannot be used as an express?
0
IT
Top achievements
Rank 1
answered on 26 Aug 2016, 08:46 AM

Ignore that - it's too early. I hadn't realised it was C that you had posted it in and just copied and pasted. All sorted now.

For reference for anyone else, in VB it is

DirectCast(e.SelectedPoint, CategoricalDataPoint).Category

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 26 Aug 2016, 09:03 AM
Hello Shane, 

Thank you for writing back. 

Feel free to use our online Code Converter to convert C# to VB.Net and vice versa: http://converter.telerik.com/

I hope this information helps. If you have any additional questions, please let me know.

Regards,
Dess
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
Tags
ChartView
Asked by
IT
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
IT
Top achievements
Rank 1
Share this question
or