Editable Combo Box

In editable drop down controls, when the user types some text before clicking on the picklist icon, the code for combo box tab out gets fired and a validation is fired.

"A dropdown combo box has the following values
““One””
““Two””
““Three””

The user enters ““T”” and then clicks on the dropdown button.
A warning message is displayed informing the user to choose from the list of values in the dropdown.
This is because the dropdown control and the dropdown button are treated as seperate controls internally."

How to get rid of this behaviour ?

Is this related to a SmartClient built-in control or something you created yourself? SmartClient controls don’t show warning messages in this case.

Try putting together an example.

We are validating combocontrol for the correct data, but the editorExit event generates even when the dropdown button is clicked. Below mentioned is the code snippet. Please suggest.

editorExit: function(editCompletionEvent, record, newValue, rowNum, colNum, item)
{
if(newValue!=null && newValue!=‘’ && lineCode.length!=0 && !lineCode.contains(newValue))
{
this.setValue(‘’);
isc.say(‘Line code does not exist !’);
}

Doesn’t happen in samples, eg modify this example:

http://www.smartclient.com/index.jsp#editByRow

.. so that the continent field is a comboBox:

        {name:"continent", editorType:"comboBox", 
         editorExit : "isc.logWarn('editorExit called')" },

EditorExit does not fire when the dropdown button is clicked. Please try to figure out what your code is doing differently, custom logic in your application may be causing this problem.

One effective tool is to log a stack trace to see where the call is coming from, eg:

isc.logWarn("editorExit called: " + this.getStackTrace())

This works best in IE.

The example mentioned by you has non editable combo, but we are using the editable combo, where user can enter invalid data.

Please re-read previous reply.