Jun 12, 2012, 3:53 PM
[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:
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]