C1ComboBox: How to select a ComboBox item by setting the value

Posted by: relitech on 10 September 2017, 11:44 am EST

  • Posted 10 September 2017, 11:44 am EST

    Hi,

    I want to set the ComboBox to a specific value.
    When using: ComboBoxProjectNr.SelectedItem.Value = selectedProject;
    the selection will not change.

    When using: ComboBoxProjectNr.SelectedIndex = 10;
    the selection will change as it should.

    But I don't have the index number, I have to use the value to select an item.
    How can I do this?

    Thanks,
    Egbert
  • Replied 10 September 2017, 11:44 am EST

    Hello Egbert,

    It seems a problem to me as well and I have escalated this issue to the developer for review. I would update you as soon as I hear anything from them.

    Regards
    Ashish
  • Replied 10 September 2017, 11:44 am EST

    Hello Ashish,

    Thanks and I hope that this issue will be fixed soon.
    I need this functionality asap.
    I think it's normal combobox behaviour.

    Regards,
    Egbert
  • Replied 10 September 2017, 11:44 am EST

    Hello Egbert,

    I would like to inform you that developer has added a property called "SelectedValue" which you can use to select any item on basis of value. This property has been added in the latest build which is currently under QA testing. The build will be uploaded on the prerelease site as soon as it is cleared by QA team.

    Regards
    Ashish
  • Replied 10 September 2017, 11:44 am EST

    Hello Egbert,

    The issue is fixed in C1Wijmo build 3.5/4.0.20121.56 which is available at :
    http://prerelease.componentone.com/dotnet30/c1webwijmo.webforms/2012-t1/C1WebWijmo.Webforms_3.5.20121.56.zip

    Thanks,
    Richa
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels