GridPanel ComboBox Bug

  1. #1

    GridPanel ComboBox Bug

    Hello,

    The below example and replication steps should indicate a bug with an Editable ComboBox in a GridPanel:

    Example.aspx:
    <%@ Page Language="C#" %>
    <%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            Store1.DataSource = new object[] {
                new object[] { "Timothy", "Cool" }
            };
            Store1.DataBind();
        }
    </script>
    
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>Example Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
        <asp:ScriptManager runat="server" EnablePartialRendering="True" />
        <ext:ScriptManager runat="server" StateProvider="PostBack" />
        
        <ext:Store ID="Store1"
            runat="server"
            AutoLoad="False">
            <Reader>
                <ext:ArrayReader>
                    <Fields>
                        <ext:RecordField Name="Customer" />
                        <ext:RecordField Name="Value" />
                    </Fields>
                </ext:ArrayReader>
            </Reader>
        </ext:Store>
        <ext:GridPanel ID="GridPanel1"
            runat="server"
            StoreID="Store1"
            AutoHeight="True"
            AutoWidth="True">
            <ColumnModel>
                <Columns>
                    <ext:Column ColumnID="Customer" DataIndex="Customer" Header="Customer" />
                    <ext:Column ColumnID="Value" DataIndex="Value" Header="Value">
                        <Editor>
                            <ext:ComboBox runat="server"
                                Editable="True">
                                <Items>
                                    <ext:ListItem Text="Word" Value="Word" />
                                    <ext:ListItem Text="Word 2" Value="Word 2" />
                                    <ext:ListItem Text="Word 3" Value="Word 3" />
                                </Items>
                            </ext:ComboBox>
                        </Editor>
                    </ext:Column>
                </Columns>
            </ColumnModel>
            <SelectionModel>
                <ext:RowSelectionModel runat="server" />
            </SelectionModel>
        </ext:GridPanel>
        
    
        </form>
    </body>
    </html>
    Replication steps:

    1. Load page
    2. Click "Cool" and change to "Word" or "Word 2"
    3. Works
    4. Reload page
    5. Click "Cool" and type "Hello World" into ComboBox
    6. Value reverted back to "Cool"

    Cheers,
    Timothy
  2. #2

    RE: GridPanel ComboBox Bug

    Any update on resolve, or can someone confirm this is actually how it's supposed to work?

    Cheers,
    Timothy
  3. #3

    RE: GridPanel ComboBox Bug

    Hi Timothy,

    I think it is supposed to work in this manner. After you change text in combo box and then press save (to save row),
    at that moment I would check if it takes what you've written in combobox... but don't exactly know.

    Matteo
  4. #4

    RE: GridPanel ComboBox Bug

    methode (12/8/2008) Hi Timothy,

    I think it is supposed to work in this manner. After you change text in combo box and then press save (to save row),
    at that moment I would check if it takes what you've written in combobox... but don't exactly know.

    Matteo
    I would expect the functionality would hold and show the modified value until Save is actually issued; seems a little inconsistent with other controls like the text box or date change ;)

    Cheers,
    Timothy
  5. #5

    RE: GridPanel ComboBox Bug

    yes, I do believe there is a problem. I thought it was going to be a quick easy fix, but it does now appear to be more involved.*

    We're looking into this.*



    Geoffrey McGill
    Founder
  6. #6

    RE: GridPanel ComboBox Bug

    geoffrey.mcgill (12/8/2008)yes, I do believe there is a problem. I thought it was going to be a quick easy fix, but it does now appear to be more involved.

    We're looking into this.


    Thanks, that's all I need Geoffrey ;)

    Cheers,
    Timothy

Similar Threads

  1. Replies: 4
    Last Post: Nov 30, 2011, 5:25 AM
  2. Replies: 2
    Last Post: May 05, 2011, 10:16 AM
  3. Two ComboBox in GridPanel
    By SETConsulting in forum 1.x Help
    Replies: 0
    Last Post: Feb 10, 2011, 2:28 PM
  4. Replies: 6
    Last Post: Mar 20, 2009, 5:39 PM
  5. how to Add ComboBox in GridPanel
    By supermanok in forum 1.x Help
    Replies: 8
    Last Post: Dec 20, 2008, 6:35 AM

Posting Permissions