Is it possible to call a viewmodel method from within the markup for a viewmodel?
1 Answer, 1 is accepted
0
Alexander Valchev
Telerik team
answered on 11 Jun 2013, 09:11 AM
Hello Michael,
I am not sure what exactly you would like to achieve. In general it is possible to execute a ViewModel method when a certain event occurs - for example when an HTML button is clicked. For example:
Another possible option is to bind a field to a MVVM method which calculates and returns its value. For more information please check the corresponding docs.