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
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
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.
ThanksThank 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
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
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