When using simple data binding on i.e a select element, when a model is created it will not upon creating automatically set the values as on the select elements. This should be the desired effect as on first initialization the model is out of sync with what value is actually on the element. In my opinion, it should upon being created transverse through the model bindings and set the values as on the elements, however if values are supplied when creating the agility object are supplied it use those values instead and 'sync' with the bound elements.
Is there any decent way around this, aside from creating the model object with default values which can be cumbersome and add unnecessary code?
When using simple data binding on i.e a select element, when a model is created it will not upon creating automatically set the values as on the select elements. This should be the desired effect as on first initialization the model is out of sync with what value is actually on the element. In my opinion, it should upon being created transverse through the model bindings and set the values as on the elements, however if values are supplied when creating the agility object are supplied it use those values instead and 'sync' with the bound elements.
Is there any decent way around this, aside from creating the model object with default values which can be cumbersome and add unnecessary code?