[CLOSED] How to display text on a GridPanel's StatusBar on the left hand side?

  1. #1

    [CLOSED] How to display text on a GridPanel's StatusBar on the left hand side?

    In one of application I have a GridPanel with a Label inside a StatusBar as follows:

    <ext:GridPanel ID="GridPanel1" StoreID="stTypes" AutoExpandColumn="Description" EnableColumnHide="false" EnableColumnMove="false" Height="154" runat="server">
        <ColumnModel>
            <Columns>
                <ext:Column ColumnID="TypeId" DataIndex="TypeId" Fixed="true" Header="NoticeType" Sortable="false" Width="875" />
                <ext:Column ColumnID="Description" DataIndex="Description" Fixed="true" Header="NoticeDesc" Sortable="false" />
            </Columns>
        </ColumnModel>
        <SelectionModel>
            <ext:CheckboxSelectionModel ID="CheckboxSelectionModel1" runat="server" />
        </SelectionModel>
        <BottomBar>
            <ext:StatusBar ID="StatusBar2" Cls="StatusBar" runat="server">
                <Items>
                    <ext:Label ID="Label1" runat="server" />
                </Items>
            </ext:StatusBar>
        </BottomBar>
    </ext:GridPanel>
    When a text (i.e. Total:27) is displayed on the Label it is displayed on the right side of the status bar as shown on the screen dump below.

    Can you please tell me how to display the text on the left side of the status bar?

    Click image for larger version. 

Name:	Grid.jpg 
Views:	560 
Size:	71.3 KB 
ID:	3415
    Last edited by Daniil; Nov 09, 2011 at 9:47 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Please set up StatusAlign="Left" for a StatusBar.
  3. #3
    Just tried it but it did not work. The text "Total: 27" was still displayed on the right hand side of the status bar.
  4. #4
    For Statusbar it is better to use updateStatus method to show text
    If you want to place Label then use Toolbar.

    Strictly speaking, StatusBar is rudiment. All (and more) can be implemented with Toolbar
  5. #5
    Thanks. The method is actually SetStatus instead of UpdateStatus.

Similar Threads

  1. Align Toolbar item right hand side
    By vivekrane1986 in forum 1.x Help
    Replies: 2
    Last Post: Jun 04, 2010, 4:46 AM
  2. Replies: 11
    Last Post: Apr 08, 2010, 1:36 PM
  3. Replies: 1
    Last Post: Mar 23, 2010, 2:18 PM
  4. [CLOSED] Text align left for button text
    By macap in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jul 09, 2009, 10:52 AM
  5. [CLOSED] Multiline Text Problem in StatusBar
    By thedarklord in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 23, 2009, 4:13 PM

Tags for this Thread

Posting Permissions