I am trying to subclass ComboBoxItem for a later use in a ListGrid.
Here is my code:
isc.ClassFactory.defineClass("ListGridComboBoxField", "ComboBoxItem");
isc.ListGridComboBoxField.addProperties({
editorProperties:
{
keyPress: function ()
{
var inValidChars = "0123456789@#$%^&*()-_=+[]{}\|;:',.<>/?" + '"';
var keyName = isc.EventHandler.getKey();
if (inValidChars.indexOf(keyName) == -1)
return true;
else
return false;
},
changed: function (form, item, value)
{
item.focusInItem();
}
},
initWidget : function () {
return this.Super("initWidget", arguments);
}
});
and implementation:
[code]
fields:[
{name:"name", title:"title", editorType:isc.ListGridComboBoxField, valueField: "id",
optionDataSource:"someDs", displayField: "description"
},
When I run it I am not getting custom functionality being added to my class. Basis functionality works fine. Same editorProperties customization code added directly to the field definition in the ListGrid works Ok. Can you help please?