Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1145
Binding combo selection only in Knockout
posted

Is there a way to bind just the selected index of an igCombo to a knockout observable? I don't want to bind the data itself or anything else.

 

Something like:

 <span id="usersettings_initialtab_input" class="inputselectlist"
       data-bind="igCombo: { selectedIndex: navigationTab}">
</span>

That doesn't work, but that's the idea of what I'm trying to achieve, where navigationTab is a knockout observable in my viewmodel.

Parents
No Data
Reply
  • 4315
    Offline posted

    Hi, Pete.

    Now knockout extensions for igCombo is available with our 13.1 release. You can make observable two of the igCombo properties: text and dataSource. It's not possible to bind selectedIndex as observable, bit this is not the way a knockout extension is supposed to work in general. What you can do is to take the text anytime it is updated and then find the related index. If you need assistance on that I'll be glad to help you.

    Best regards,

    Nikolay Alipiev

Children
No Data