May 27, 2020, 7:59 PM
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:
Thanks,
Dennis.
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:
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:<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.
Last edited by fabricio.murta; May 29, 2020 at 3:50 PM.
Reason: Wrap code in [code][/code] tags.