GridPanel - Editable - Combo Box Shows Value instead of Label

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    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:


    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.
    Attached Thumbnails Click image for larger version. 

Name:	Screen Shot 2020-05-27 at 3.56.07 PM.png 
Views:	199 
Size:	67.0 KB 
ID:	25351   Click image for larger version. 

Name:	Screen Shot 2020-05-27 at 3.56.32 PM.png 
Views:	188 
Size:	73.2 KB 
ID:	25352   Click image for larger version. 

Name:	Screen Shot 2020-05-27 at 3.56.44 PM.png 
Views:	146 
Size:	57.1 KB 
ID:	25353  
    Last edited by fabricio.murta; May 29, 2020 at 3:50 PM. Reason: Wrap code in [code][/code] tags.

Similar Threads

  1. [CLOSED] Fill Combo-box store client side based on another Combo-box selection
    By speedstepmem4 in forum 3.x Legacy Premium Help
    Replies: 4
    Last Post: Jan 12, 2015, 5:21 AM
  2. Replies: 6
    Last Post: Aug 25, 2011, 2:13 PM
  3. Replies: 3
    Last Post: Jun 03, 2011, 12:10 PM
  4. Editable Grid Panel with Combo box column
    By jigpatel06 in forum 1.x Help
    Replies: 1
    Last Post: Nov 03, 2010, 8:06 PM
  5. [CLOSED] Disable combo box label
    By CSG in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 02, 2009, 5:44 AM

Tags for this Thread

Posting Permissions