First of all, I know you can use Computed observables. They are really great for complex properties, but IMO are not a worthy replacement for the IValueConverters you have in Silverlight. In my current project, I have multiple datepickers. Right now, I have to create an extra computed observable for each date, because I want the formatting to work. So If I have 5 dates that's 10 properties, where in Silverlight you would have 5 dates and 1 generic dateconverter.
It works, but it's not very clean code.. Not to mention the issues you get when applying validation to these dates..
Is there something like:
<input type="text" data-bind="value: TestProperty" data-converter="MyTextConverter" />
Or is there any alternative to this which doesn't let me create double properties?
Thanks in advance,
Arne Deruwe
You're looking at a prime use for a custom-binding. See here for a good guide
Interceptor code modified from here
Edit:
And your html would look like: