cancel
Showing results for 
Search instead for 
Did you mean: 

Event not triggering for Combo Box

Hi All,

Iam using Combo Box to display the items . items getting displayed , but "change" event is not getting triggered,

when i select the item in the combo box.Please help.

Code in XML view

<ComboBox id ="charProf"  change="selectedChar"

              items="{path: '/charProfileResults'}" >

                  <core:Item key="{}" text="{CLAS1}" />

</ComboBox>

Code in controller :

selectedChar:function(oEvent) {

  debugger;

var selectedValue = oEvent.getSource().getValue();

}

Regards,

shaik

Accepted Solutions (1)

Accepted Solutions (1)

saivellanki
Active Contributor

Hi Shaik,

Use 'selectionChange' event instead of change. Since, change event gets triggered only when the focus leaves input field or enter key is pressed.

JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - sap.m.ComboBox

Regards,

Sai Vellanki.

0 Kudos

Perfect ..Sai.

Thank you for your prompt help.

Regards,

Shaik.

Answers (0)