Using MVVM with RadChart control

5 posts, 0 answers
  1. Chris Thierry
    Chris Thierry avatar
    138 posts
    Member since:
    Jun 2010

    Posted 11 May 2011 Link to this post

        I want to migrate a Silverlight 4 application using VS2010, in fact I'm going to start with a page that contains different radchart that interact together, for example if I click in a chart item, I need to refresh the other chart with related information.

    My question is, Telerik Silverlight Controls are fully compatible with MVVM? I saw some thread without answer about some event using CallMethodAction. I don't want to start migrating my application if I'm going to have issues with copatibility... Is there any example using events other than click button?, also I found comments in this forum about trying to do an event in the ViewModel without success, but is working fine in the View.

    So, if the concept of MVVM is trying to put everything in the ViewModel, I shoudn't have problems moving these events into my ViewModel, Please I need an answer and some examples before start doing the migration.

    Thank you very much.
  2. Chris Thierry
    Chris Thierry avatar
    138 posts
    Member since:
    Jun 2010

    Posted 13 May 2011 Link to this post

    Is there any way to use any event in a RadChart using triggers?
    Is there any example that I can see?
    I checked the demos but is only a normal chart without any interaction.
  3. DevCraft banner
  4. Evgenia
    Evgenia avatar
    1407 posts

    Posted 17 May 2011 Link to this post

    Hello Chris,

    To be able to have radcharts that interact together (clicking a chart item refreshes the other chart's data) you can review our DrillDown demo with full source code as well as our online documentation.
    All our demos are made by using the MVVM pattern. Let us know if you need further assistance with this scenario.

    All the best,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. mgturner
    mgturner avatar
    2 posts
    Member since:
    Jun 2007

    Posted 31 Oct 2011 Link to this post

    Do you have any example using drill down on RadChart with WPF and Prism. I'm particular interested when I click on the Chart area to drill down that I'm able to capture and publish an event. I know I can use ItemClick in my view.xaml.cs but then I would need to get a reference to EventAggregator and RegionManager,in view.xaml.cs, in order to publish an event. I prefer to capture the click event in my viewModel.cs where I have a reference to EventAggregator and RegionManager but how do I wire up the click event in xaml to go to my viewModel.cs. I'm using version RadControl Q2 2010.

                            <telerik:ChartArea ItemClick="ChartAreaItemClick"   PaletteBrushesRepeat="False" >
    //Code behind
           protected void ChartAreaItemClick(object sender, ChartItemClickEventArgs e)
                double StatusCount = e.DataPoint.YValue;
                string StatusName = e.DataPoint.XCategory;
  6. mgturner
    mgturner avatar
    2 posts
    Member since:
    Jun 2007
Back to Top
DevCraft banner