How to get value of the ribbon's ComboBox control? RRS feed

  • Question

  • I would like to apply filtering capabilities in the ComboBox control, where a user types in some text in the ComboBox, and I will filter the list to be populated in the drop-down.

    To do this, I need to get the value typed into the ComboBox before populating the drop-down values, how can I get the ComboBox value programatically? I know that if user hits "Enter" after typing some text, it will trigger the OnChange function, but the problem I'm facing is when user types in some text then immediately clicks on the drop-down arrow to show the drop-down list.

    When user clicks on the clicks on the drop-down arrow after typing the text, the code goes to getItemCount, getItemLabel, then only onChange, which is too late. I need to get the text input by user during getItemCount itself (or before that), so that I can filter the list to be used in getItemLabel.

    Tuesday, December 13, 2016 7:37 AM

All replies