[CLOSED] Filter Header and Combo boxes

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] Filter Header and Combo boxes

    Hello,

    I am using Filter Header to filter my grid data as in this example - : https://examples2.ext.net/#/GridPane...ader/Overview/
    This does not seem to work on combo boxes. Any suggestions?
    Last edited by Daniil; Jun 17, 2014 at 9:43 AM. Reason: [CLOSED]
  2. #2
    Hi @vmehta,

    You should use a Column's HeaderItems, like that:
    <ext:Column runat="server" Text="Size" DataIndex="Size">
        <HeaderItems>
            <ext:ComboBox runat="server">
                <Items>
                    <ext:ListItem Text="small" />
                    <ext:ListItem Text="large" />
                </Items>
            </ext:ComboBox>
        </HeaderItems>
    </ext:Column>
  3. #3
    I am using a editable grid.

     <ext:Column ID="Column4" runat="server" Text="Topic" DataIndex="TopicID" >
                    <Renderer Fn="topicValues" />                
    <Editor>  
      <ext:ComboBox ID="ComboBox1" runat="server" StoreID="StoreCombo" DisplayField="TopicName"
       ValueField="TopicID" />
                    </Editor>            
    </ext:Column>
    Last edited by vmehta; Jun 11, 2014 at 6:35 AM.
  4. #4
    Thanks for sharing that.
  5. #5
    Is there a way to implement it to combo boxes?
  6. #6
    Quote Originally Posted by vmehta View Post
    Is there a way to implement it to combo boxes?
    Please clarify to implement what? If you put the code that I posted earlier into the FilterHeader example that you mentioned, you will see a ComboBox filter for the Size column. Is that not what you need? If so, please clarify your requirement. It is not clear.
  7. #7
    I did this.
     <ext:Column ID="Column3" runat="server" Text="Topic" DataIndex="TopicID">
                     <Renderer Fn="topicValues" />
                    <HeaderItems>
                        <ext:ComboBox ID="ComboBox2" runat="server" StoreID="StoreCombo" DisplayField="TopicName"
                            ValueField="TopicID">
                        </ext:ComboBox>
                    </HeaderItems>
                </ext:Column>
    but I am using a editable grid

    <ext:Column ID="Column4" runat="server" Text="Topic" DataIndex="TopicID" >
                    <Renderer Fn="topicValues" />
                    <Editor>
                        <ext:ComboBox ID="ComboBox1" runat="server" StoreID="StoreCombo" DisplayField="TopicName"
                            ValueField="TopicID" Editable="false">
                        </ext:ComboBox>
                    </Editor>
                </ext:Column>
    Please let me know how I can implement it in this
    Last edited by vmehta; Jun 12, 2014 at 12:15 PM.
  8. #8
    Do you mean that this combination doesn't work?
    <ext:Column>
        <Renderer ... />
        <Editor>...</Editor>
        <HeaderItems>...</HeaderItems>
    </ext:Column>
  9. #9
    There is no <Headertems> in <Editor>
  10. #10
    I did this.

    <ext:Column ID="Column4" runat="server" Text="Topic" DataIndex="TopicID">
                    <Renderer Fn="topicValues" />
                    <Editor>
                        <ext:ComboBox ID="ComboBox1" runat="server" StoreID="StoreCombo" DisplayField="TopicName"
                            ValueField="TopicID" Editable="false">
                        </ext:ComboBox>
                    </Editor>
                    <HeaderItems>
                        <ext:ComboBox ID="ComboBox2" runat="server" StoreID="StoreCombo" DisplayField="TopicName"
                            ValueField="TopicID"/>
                    </HeaderItems>
                </ext:Column>
    and I got the filter combo box. But when I choose a value it gives this error 'Object doesn't support property or method 'split''. Any idea?
Page 1 of 2 12 LastLast

Similar Threads

  1. [CLOSED] Combo query issue when using same store on two combo boxes
    By FpNetWorth in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 05, 2013, 10:53 PM
  2. [1.0] Combo boxes not editable.
    By michaeld in forum 1.x Help
    Replies: 1
    Last Post: May 20, 2010, 10:49 AM
  3. [CLOSED] combo boxes initialization
    By alexp in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 04, 2010, 11:11 AM
  4. Problem using coolite combo boxes
    By virus in forum 1.x Help
    Replies: 3
    Last Post: Sep 19, 2009, 12:28 AM
  5. Linked Combo Boxes using DataSources
    By rthiney in forum 1.x Help
    Replies: 3
    Last Post: Aug 06, 2009, 12:36 PM

Posting Permissions