I don't think it is a good idea to also change sometimes the ``selectedIndex`` in the data model in a method called ``setValueInDataModel``. Instead, the ``setIndexInDataModel``method should be called with the right condition from ``onbind``.