MVVM suggestion

1 posts, 0 answers
  1. Andrey
    Andrey avatar
    2 posts
    Member since:
    Sep 2007

    Posted 26 Mar 2012 Link to this post

    Hello,

    Will it be useful to have functionality similar to converters in Silverlight?
    I am thinking about ability to have function which could convert value on set.
    This could add  flexibility to the framework.
    Something like:

    var viewModel = kendo.observable({
                currencyAmount: 100.0,
                currencyText: {
     get: function () {
       var value = viewModel.get("currencyAmout");
       // convert to string and return converted formatted value.
    },
     set: function (value) {
       // convert from string.
       viewModel.set("currencyAmout", amount);
    }}
    });


Back to Top