[CLOSED] How to remove the Refresh icon from the Combo control

  1. #1

    [CLOSED] How to remove the Refresh icon from the Combo control

    Hello,
    I have a Template within the ComboBox control.
    I can't find a property to remove/hide the Refresh icon from the ext:ComboBox control.
    How can I remove or hide it?

    Thank you in advance for your help.

    Below is my code:

    <%@ Page Language="C#" %>
    <%@ Register Assembly="Ext.Net" TagPrefix="ext" Namespace="Ext.Net" %>
    
    <script runat="server">              
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!X.IsAjaxRequest)
            {
                this.BindData();
            }
        }
    
        private void BindData()
        {
            var store = this.cbDoughName.GetStore();
    
            store.DataSource = this.Data;
            store.DataBind();
        }
    
        private object[] Data
        {
            get
            {
                DateTime now = DateTime.Now;
    
                return new object[]
                {
                    new object[] { "3m Co", 71.72, 0.02, 0.03},
                    new object[] { "Alcoa Inc", 29.01, 0.42, 1.47 },
                };
            }
        }
    </script>
    <script type="text/javascript">
     var doughSelect = function(sender, args, record, value, rec) {
                    ProductStore.load();
    
    </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>Ext.NET Example</title>
    
    </head>
    <body>
        <form id="Form1" runat="server">
        <ext:ResourceManager ID="ResourceManager1" runat="server" />
        <ext:ComboBox ID="cbDoughName" runat="server" EmptyText="Select a Dough" DisplayField="DoughName"
            Editable="false" ValueField="DoughId" FieldLabel="Dough" AllowBlank="false" Name="DoughName"
            Cls="RunDetail" ItemCls="RunDetail" LabelStyle="RunDetail" AnchorHorizontal="95%"
            LoadingText="Loading Doughs..." TabIndex="1" ListWidth="395" ItemSelector="tr.list-item"
            PageSize="100">
            <Template ID="Template2" runat="server">
                <Html>
                <tpl for=".">
                    <tpl if="[xindex] == 1">
                      <table class="cbDough-list">
                             <tr>
                               <th>Dough Name :</th>
                                <th>Weight :</th>
                                 <th>ID :</th>
                                  </tr>
                                  </tpl>
                                  <tr class="list-item">
                                  <td style="padding:3px 0px;">{DoughName}</td>
                                   <td>{DoughWeight}</td>
                                   <td>{DoughOracleId}</td>
                                    </tr>
                                    <tpl if="[xcount-xindex]==0">
                                      </table>
                                   </tpl>
                              </tpl>
                </Html>
            </Template>
            <Store>
                <ext:Store ID="DoughStore" runat="server" AutoLoad="true" AutoDataBind="true">
                    <SortInfo Field="DoughName" Direction="ASC" />
                    <Reader>
                        <ext:ArrayReader>
                            <Fields>
                                <ext:RecordField Name="DoughName" Type="String" />
                                <ext:RecordField Name="FlourSize" Type="Float" />
                                <ext:RecordField Name="DoughWeight" Type="Float" />
                                <ext:RecordField Name="ScaleWeight" Type="Float" />
                                <ext:RecordField Name="FinishWeight" Type="Float" />
                            </Fields>
                        </ext:ArrayReader>
                    </Reader>
                </ext:Store>
            </Store>
           
        </ext:ComboBox>
        </form>
    </body>
    </html>
    Last edited by Daniil; Jun 12, 2012 at 8:44 PM. Reason: [CLOSED]
  2. #2
  3. #3
    Thank you ! That fixed my problem.


    Quote Originally Posted by Daniil View Post

Similar Threads

  1. [CLOSED] Has't refresh PagingToolbar after remove rows from store.
    By ViDom in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Oct 18, 2011, 1:37 PM
  2. Replies: 5
    Last Post: Aug 02, 2010, 8:44 AM
  3. Replies: 3
    Last Post: Jul 20, 2010, 7:48 PM
  4. Replies: 3
    Last Post: May 11, 2010, 10:36 AM
  5. Remove Combo Box Item
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 0
    Last Post: Dec 10, 2008, 5:41 AM

Posting Permissions