In PostBack
if (!IsPostBack)
{
ds = obj1.GetDataSet("select article_status_type as ATRICLE_STATUS_TYPE,ARTICLE_STATUS_DESC from
article_status where 1=1 and Sys_id = '1'");
this.Store1.DataSource = ds;
this.Store1.DataBind();
}
in Html view
<ext:Store ID="Store1" runat="server" AutoLoad="true" >
<Reader>
<ext:JsonReader >
<Fields>
<ext:RecordField Name="ARTICLE_STATUS_TYPE" />
<ext:RecordField Name="ARTICLE_STATUS_DESC" />
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
<ext:ComboBox runat="server"
ID="cmb_status"
Width="170px"
StoreID="Store1"
Editable="false"
DisplayField="ARTICLE_STATUS_DESC"
ValueField="ARTICLE_STATUS_TYPE"
TypeAhead="true"
Mode="Local"
ForceSelection="true"
TriggerAction="All"
SelectOnFocus="false" />
now i got Items in Combo Box.
then i want change ComoBox Text on Image Click event
sample is,
<img src="images/toolbar/excel.png" alt="Apply" title="Apply" id="apply_fil" />
<U>on event for apply_fil id</U>
<ext:ScriptManager ID="ScriptManager1" runat="server" RenderStyles="File" >
<CustomAjaxEvents>
<ext:AjaxEvent Target="apply_fil" OnEvent="Apply_filter">
<EventMask ShowMask="false" />
</ext:AjaxEvent>
<</CustomAjaxEvents>
</ext:ScriptManager>
In C# code is,
protected void Apply_filter(object sender, AjaxEventArgs e)
{
string s="Antony";
cmb_status.SelectedItem.Text = s;
}
In this time also the selected text shown "Select".
How can i Change Selected Text at this time..
help me
by
madan