[CLOSED] [1.0] Status bar for combobox that does not use paging

  1. #1

    [CLOSED] [1.0] Status bar for combobox that does not use paging

    Is there a way to add a custom toolbar or "statusbar" to the bottom of the combobox results? For instance, I would like to place custom text in the box when it is open that would not scroll with the contents of the combobox. I do not wish to have paging turned on however, just this custom text status bar.
    Last edited by Daniil; Nov 15, 2010 at 1:11 PM. Reason: [CLOSED]
  2. #2
    Hi,

    I found this code in Combo.js

    Piece of Combo.js

    if(this.pageSize){
        this.footer = this.list.createChild({cls:cls+'-ft'});
        this.pageTb = new Ext.PagingToolbar({
            store: this.store,
            pageSize: this.pageSize,
            renderTo:this.footer
        });
        this.assetHeight += this.footer.getHeight();
    }
    A possible solution can look something like this.

    Example
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Ext.Net Example</title>
    
        <ext:ResourcePlaceHolder runat="server" />
        <script type="text/javascript">
            Ext.onReady(function() {
                ComboBox1.footer = ComboBox1.list.createChild({html: "<div style='text-align: center'>Hello!<div>"});
                ComboBox1.assetHeight += ComboBox1.footer.getHeight();
            });
        </script>
    </head>
    <body>
        <form runat="server">
        <ext:ResourceManager runat="server" />
        <ext:ComboBox ID="ComboBox1" runat="server" LazyInit="false">
            <Items>
                <ext:ListItem Text="Item1" Value="1" />
                <ext:ListItem Text="Item2" Value="2" />
            </Items>
        </ext:ComboBox>
        </form>
    </body>
    </html>

Similar Threads

  1. [CLOSED] Paging issues with combobox
    By wisdomchuck in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 21, 2012, 1:15 PM
  2. Need help for Combobox paging event
    By phancongphuoc in forum 1.x Help
    Replies: 5
    Last Post: Apr 19, 2012, 2:29 PM
  3. Replies: 16
    Last Post: Oct 04, 2011, 5:17 PM
  4. status text status code CUSTOM
    By threewonders in forum 1.x Help
    Replies: 0
    Last Post: Sep 26, 2011, 1:29 PM
  5. [CLOSED] combobox with paging
    By RomualdAwessou in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Aug 05, 2010, 7:24 PM

Tags for this Thread

Posting Permissions