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

ViewModel

2 Answers 82 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Showmen Das
Top achievements
Rank 1
Showmen Das asked on 10 Aug 2017, 02:25 PM
I am trying to pass dynamic values for a SplineAreaSeries chart in a viewmodel and reference that viewmodel in my xaml. But so far viewmodel constructor with parameters is not working for me in the designs while using it inside TelerikBindingContext. Constructor without parameters always works! But I need it for  constructor with parameters for my project! Any suggestions or example will be very nice.. Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
Showmen Das
Top achievements
Rank 1
answered on 10 Aug 2017, 02:32 PM
Sorry I forgot to add.. the application is in xamarin forms
0
Stefan Nenchev
Telerik team
answered on 15 Aug 2017, 11:41 AM
Hi,

Can you please clarify what you mean by TelerikBindingContext as there is no such custom object in the suite? I believe that you are referring to the BindingContext of a Chart control and you would like to set it to a specific ViewModel which requires some parameters. If this is the case, unfortunately, there does not seem to be an easy option built in the framework(such as the ObjectDataProvider in WPF) which you can utilize in this case. Please share more information on your setup so we can consider the options in front of you and suggest a possible approach.

Have a great rest of the week.

Regards,
Stefan Nenchev
Progress Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Chart
Asked by
Showmen Das
Top achievements
Rank 1
Answers by
Showmen Das
Top achievements
Rank 1
Stefan Nenchev
Telerik team
Share this question
or