DrillDown Help

7 posts, 0 answers
  1. Shane
    Shane avatar
    9 posts
    Member since:
    Feb 2016

    Posted 18 Aug Link to this post

    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.

  2. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 19 Aug Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Shane
    Shane avatar
    9 posts
    Member since:
    Feb 2016

    Posted 25 Aug in reply to Dess Link to this post

    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
  5. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 26 Aug Link to this post

    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.
  6. Shane
    Shane avatar
    9 posts
    Member since:
    Feb 2016

    Posted 26 Aug in reply to Dess Link to this post

    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?
  7. Shane
    Shane avatar
    9 posts
    Member since:
    Feb 2016

    Posted 26 Aug in reply to Shane Link to this post

    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

  8. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 26 Aug Link to this post

    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.
Back to Top
UI for WinForms is Visual Studio 2017 Ready