3 Attachment(s)
GridPanel - Editable - Combo Box Shows Value instead of Label
Hello,
I have a Combo Box Field in the Grid Panel. I am having trouble making the combo box show the label when the page is loaded. Once I click on the Combo box control - it does show list of labels, but when I select one it goes back to showing the value.
My Code:
Code:
protected void Page_Load(object sender, EventArgs e)
{
LoadStatuses();
if (!X.IsAjaxRequest)
{
this.BindData();
}
}
private void LoadStatuses()
{
this.cbStatuses.Items.Add(new Ext.Net.ListItem("Pending", 1));
this.cbStatuses.Items.Add(new Ext.Net.ListItem("Accepted", 4));
this.cbStatuses.Items.Add(new Ext.Net.ListItem("Rejected", 7));
}
Column Definition:
Code:
<ext:Column runat="server" DataIndex="TransferStatus_ID" Text="Status Select" Width="200">
<Editor>
<ext:ComboBox ID="cbStatuses" runat="server" />
</Editor>
</ext:Column>
Please asvise.
Thanks,
Dennis.