ViewModel

3 posts, 0 answers
  1. Showmen Das
    Showmen Das avatar
    2 posts
    Member since:
    Aug 2017

    Posted 10 Aug Link to this post

    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. Showmen Das
    Showmen Das avatar
    2 posts
    Member since:
    Aug 2017

    Posted 10 Aug in reply to Showmen Das Link to this post

    Sorry I forgot to add.. the application is in xamarin forms
  3. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    503 posts

    Posted 15 Aug Link to this post

    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
Back to Top