[CLOSED] gridpanel header button

  1. #1

    [CLOSED] gridpanel header button



    Hi,

    I need to show grid panel title in left corner and Button in right corner of grid.
    how to do this.

    for example:
    Title<Link>in left corner and i need button<Click> at right corner. how to do this

    Thanks
    Speedstep
  2. #2

    RE: [CLOSED] gridpanel header button

    We're going to need more information. Can you make a screen capture/mockup of what you envision?

    Geoffrey McGill
    Founder
  3. #3

    RE: [CLOSED] gridpanel header button



    Hi,

    Please see the screen shot

    Thanks
    Speedstep
  4. #4

    RE: [CLOSED] gridpanel header button

    How about wrapping the GridPanel inside a Panel with FitLayout. No Header on the Panel, then configure the TopBar with the link and Button?

    Geoffrey McGill
    Founder
  5. #5

    RE: [CLOSED] gridpanel header button



    Hi,
    this is my code.
    I need the topbar label in left side and button in right side . but i was not able to do this..

    how to do this.
    <ext:Panel ID="Panel2" runat="server" Border="false" Height="160">
    <Body>
    <ext:FitLayout ID="FitLayout3" runat="server">
    <ext:GridPanel ID="GridPanel6" runat="server" StoreID="Store6" StripeRows="true"
    TrackMouseOver="true" HideHeaders="true" MonitorResize="True" BodyBorder="false"
    Border="false" Height="300px">
    <TopBar>
    <ext:Toolbar ID="Toolbar1" runat="server">
    <Items>
    <ext:Label ID="Label1" runat="server" Text="Useful Links">
    </ext:Label>
    <ext:Button ID="Btn" runat="server" Text="Click">
    </ext:Button>
    </Items>
    </ext:Toolbar>
    </TopBar>
    <ColumnModel ID="ColumnModel6" runat="server">
    <Columns>
    <ext:Column Hidden="true" DataIndex="Urlname">
    <Renderer Fn="URL1" />
    </ext:Column>
    <ext:Column DataIndex="Url"></ext:Column>
    </Columns>
    </ColumnModel>
    <SelectionModel>
    <ext:RowSelectionModel ID="RowSelectionModel4" runat="server" SingleSelect="true" />
    </SelectionModel>
    </ext:GridPanel>
    </ext:FitLayout>
    </Body>
    </ext:Panel>
  6. #6

    RE: [CLOSED] gridpanel header button

    Hi speedstepmem2,

    You should add the <TopBar> to the Panel, not the GridPanel.


    To space the components you can add an <ext:ToolbarFill> control betwen them.


    Hope this helps.


    Geoffrey McGill
    Founder
  7. #7

    RE: [CLOSED] gridpanel header button



    Hi,

    Thanks, It works..


Similar Threads

  1. Replies: 3
    Last Post: Sep 09, 2010, 6:31 AM
  2. [CLOSED] gridpanel show/ hide header based on toolbar button
    By yobnet in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Sep 08, 2010, 12:41 PM
  3. Button in the GridView Header not allowed
    By lordofthexings in forum 1.x Help
    Replies: 2
    Last Post: Jun 08, 2010, 9:40 PM
  4. [CLOSED] Add filter button to grid column header
    By jchau in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 08, 2009, 10:10 AM
  5. Replies: 9
    Last Post: Apr 27, 2009, 3:19 PM

Posting Permissions