Ext Markup
<Listeners>
<Select Handler="Ext.net.DirectMethods.loadcombo2();" />
</Listeners>
C#
[DirectMethod]
protected void loadcombo2()
{
this.ComboBox2.AddItem("List1", "L1");
this.ComboBox2.AddItem("List2", "L2");
}
How to call a direct method with a combo-box cell change ?
im getting a error for this
Uncaught TypeError: Object #<Object> has no method 'loadcombo2'
Try to set public instead of protected for loadcombo2
You can try this code, it works fine for me: