We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

How do i dynamically add Technical Indicators using MVVM

Hi,
I want to be able to provide the users to choose the technical indicators they want to overlay at run time. The example in the demo app is using code behind, but how to achieve this using MVVM. I tried to do something like  <chart:SfChart TechnicalIndicators="{Binding TechnicalIndicators}"> so that u can access the indicators collection from my ViewModel and manage it from there, but i kept getting object is null error. How do i achieve this? Also is it possible to add multiple indicators?

1 Reply

SA Santhiya Arulsamy Syncfusion Team December 28, 2015 07:33 AM UTC

Hi Ajay,

Thanks for contacting Syncfusion support.

We were able to bind the TechnicalIndicators collection from the ViewModel class. We were unable to reproduce the reported problem. We have prepared a sample based on your requirement. Please find the sample from the following location.

Sample:TechnicalIndicators_121531

Please let us know if you still face the problem.

Thanks.

Santhiya A.

Loader.
Live Chat Icon For mobile
Up arrow icon