Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6834389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:06:21+00:00 2026-05-26T23:06:21+00:00

Ext Markup <Listeners> <Select Handler=Ext.net.DirectMethods.loadcombo2(); /> </Listeners> C# [DirectMethod] protected void loadcombo2() { this.ComboBox2.AddItem(List1,

  • 0

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'
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T23:06:21+00:00Added an answer on May 26, 2026 at 11:06 pm

    Try to set public instead of protected for loadcombo2

    You can try this code, it works fine for me:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!X.IsAjaxRequest) {
                this.Store1.DataSource = new object[] {
                    new object[] {"AL", "Alabama", "The Heart of Dixie"},
    
                };
    
                this.Store1.DataBind();
            }
    
        }
    
        [DirectMethod]
        public void LoadCombo2() {
            this.ComboBox1.AddItem("List1", "L1");
            this.ComboBox1.AddItem("List2", "L2");
        }
    
    </script>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>Comboboxes - Ext.NET Examples</title>
    </head>
    <body>
        <form id="Form1" runat="server">
            <ext:ResourceManager ID="ResourceManager1" runat="server" />
    
            <ext:Store ID="Store1" runat="server">
                <Reader>
                    <ext:ArrayReader>
                        <Fields>
                            <ext:RecordField Name="abbr" />
                            <ext:RecordField Name="state" />
                            <ext:RecordField Name="nick" />
                        </Fields>
                    </ext:ArrayReader>
                </Reader>            
            </ext:Store>
    
            <h2>Not Editable:</h2>
    
            <ext:ComboBox 
                ID="ComboBox1" 
                runat="server" 
                StoreID="Store1" 
                Editable="false"
                DisplayField="state"
                ValueField="abbr"
                TypeAhead="true" 
                Mode="Local"
                ForceSelection="true"
                EmptyText="Select a state..."
                Resizable="true"
                SelectOnFocus="true"
                >
                <Listeners>
                    <Select Handler="DT.Everest.DocFlow.LoadCombo2();" />
                </Listeners>
    
                </ext:ComboBox>
        </form>
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Markup <ext:Button ID=Button1 runat=server Icon=ShapeSquare Text=Submit OnClick=GreetingBtn_Click > </ext:Button> Codebehind public void GreetingBtn_Click(Object sender,
I use Ext.form.ComboBox in very similar way as in this example: http://extjs.com/deploy/dev/examples/form/forum-search.html What annoys
I am using Ext.view.View for my data view. When I select one item 'selectionchange'
Our project is using Ext-js, and sometimes will send several request to Rails. This
I have this controller: Ext.define('MyApp.controller.Test', { extend: 'Ext.app.Controller', config: { }, refs: [ {
Ext.get('login-openid-form').submit(); This isn't working, what should I be doing?
In ext js, I come across functions like this: SearchWindow.WindowCloseButton.on('click',function(btn,e){ SearchWindow.hide(); }); So on
In ext-js, what is the difference between doing: this.combo= new Combo(....) and var combo
I have a Ext.net GridPanel Pagination with Paging as: <ext:PagingToolbar ID=PagingToolbar1 runat=server PageSize=25 StoreID=GridStore
In this sample Ext Js grid: http://dev.sencha.com/deploy/ext-4.0.2a/examples/dd/dnd_grid_to_grid.html You can drag and drop items from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.