combobox with button in items

Page 2 of 2 FirstFirst 12
  1. #11
    if combobox could be configured to not select when click, it is done...
    Please clarify you don't need the ComboBox's items to be able selected at all?
    basically Yes, i need to call a javascript function, not select combobox item on click button...
  2. #12
    That is probably feasible, but, unfortunately, I don't have a solution for you.
  3. #13
    isn't there anything to configure combobox to not select item on click?
  4. #14
    A <ListConfig DisableSelection="true" /> setting on a ComboBox appears to be helpful.

    Example
    <%@ Page Language="C#" %>
    
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!X.IsAjaxRequest)
            {
                Store store = this.ComboBox1.GetStore();
                store.DataSource = new object[] 
                { 
                    new object[] { "1", "Item 1" },
                    new object[] { "2", "Item 2" },
                    new object[] { "3", "Item 3" }
                };
            }
        }
    </script>
    
    <!DOCTYPE html>
    
    <html>
    <head runat="server">
        <title>Ext.NET v3 Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:ComboBox 
                ID="ComboBox1" 
                runat="server" 
                DisplayField="text" 
                ValueField="value">
                <ListConfig DisableSelection="true" />
                <Store>
                    <ext:Store runat="server">
                        <Model>
                            <ext:Model runat="server">
                                <Fields>
                                    <ext:ModelField Name="value" />
                                    <ext:ModelField Name="text" />
                                </Fields>
                            </ext:Model>
                        </Model>
                        <Reader>
                            <ext:ArrayReader />
                        </Reader>
                    </ext:Store>
                </Store>
            </ext:ComboBox>
        </form>
    </body>
    </html>
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 4
    Last Post: Jul 15, 2014, 10:59 AM
  2. Select Gridpanel Items on a button click event
    By nagamalli in forum 2.x Help
    Replies: 5
    Last Post: Jul 26, 2013, 11:46 AM
  3. Replies: 5
    Last Post: Mar 15, 2013, 4:24 AM
  4. [CLOSED] [MVC] How to disable button menu items using model
    By lawdhavmercy in forum 2.x Legacy Premium Help
    Replies: 6
    Last Post: Feb 19, 2013, 5:05 AM
  5. [CLOSED] Combobox: How to remove the duplicate items in the combobox?
    By csssi_coolite in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 09, 2011, 9:34 AM

Tags for this Thread

Posting Permissions