Footer Position

12 posts, 0 answers
  1. Mark
    Mark avatar
    132 posts
    Member since:
    Feb 2008

    Posted 25 Mar 2009 Link to this post

    Hi,

    Is it possible to move the footer to the top of the grid ?
    At the moment, users are having to scroll down to the bottom of the grid to see footers. It would be better if the footer row was at the top of the grid.

    Thanks
    Mark
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 25 Mar 2009 Link to this post

    Hi Shinu,

    I would suggest you to set the UseStaticHeaders property of the Grid to true so that the footer will be fixed at the bottom.

    ASPX:
     
     <ClientSettings> 
           <Scrolling  AllowScroll="true" UseStaticHeaders="true" /> 
        </ClientSettings> 

    Shinu

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mark
    Mark avatar
    132 posts
    Member since:
    Feb 2008

    Posted 25 Mar 2009 Link to this post

    Hi,
    Thanks for that.

    Another quick question...
    I am setting the item and header horizontal align to right for numeric columns.
    However, this does not right align the filter bar textbox for that column.
    How do i align the filter box please ?

    Thanks
    Mark
  5. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 25 Mar 2009 Link to this post

    Hello Mark,

    You can set the alignment for the filter item as shown in the code below:
    c#:
     protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) 
        { 
            if (e.Item is GridFilteringItem) 
            { 
                GridFilteringItem filterItem = (GridFilteringItem)e.Item; 
                filterItem["NumericColumnUniqueName"].HorizontalAlign = HorizontalAlign.Right; 
            } 
        } 

    Thanks
    Princy.
  6. Jean-Yves
    Jean-Yves avatar
    69 posts
    Member since:
    Feb 2009

    Posted 10 Apr 2009 Link to this post

    Hi,

    I'm going back to the first question.
    Is there another possibility ?

    In fact, I would like to put the footer (where I have my number of row and un sum) upper than the line
    'Drag a column header and drop it here to group by that column'.

    Thanks
    Jean-Yves
  7. Jean-Yves
    Jean-Yves avatar
    69 posts
    Member since:
    Feb 2009

    Posted 08 Jul 2009 Link to this post

    Hi,

    I'am also intersting on the footer position.
    So is it possible to put on the top of the grid ? 


    Thank you

    Jean-Yves
  8. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 08 Jul 2009 Link to this post

    Hi,

    The Footer element of a column is similar to the Header element, but it appears below the rows, and is represented by the GridFooterItem object.
    More information about RadGrid Footer is available in this help article.

    Greetings,
    Pavlina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  9. Jean-Yves
    Jean-Yves avatar
    69 posts
    Member since:
    Feb 2009

    Posted 10 Aug 2009 Link to this post

    Hi,

    My footer work well, but I don't want a Scroll bar and I would like to see values on top.
    So, just before the RadGrid I put an <asp:Label>. I want to copie the aggregate values shown in the footbar in my label.

    Is it possible ? And where ?

    Thank you.

    JY
  10. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 11 Aug 2009 Link to this post

    Hello Jean,

    I believe that your label is placed outside the grid. If thats the case, then you can access the footer cell text and display it in the label using the following code:
    c#:
    protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) 
        { 
            if (e.Item is GridFooterItem) 
            { 
                GridFooterItem footer = (GridFooterItem)e.Item; 
                Label1.Text = footer["ColumnUniqueName"].Text; 
            } 
        } 

    Thanks
    Princy.
  11. Jean-Yves
    Jean-Yves avatar
    69 posts
    Member since:
    Feb 2009

    Posted 14 Aug 2009 Link to this post

    Thank you very much !!!!!

    It's a great solution.
  12. Daniel Aquere
    Daniel Aquere avatar
    85 posts
    Member since:
    Mar 2011

    Posted 27 Jul 2011 Link to this post

    Hi Jean,

    I have the same need... show the footer on the top of the grid.

    Please, could you provide me a sample how did you do this?

    Thanks, best

    Daniel
  13. Jean-Yves
    Jean-Yves avatar
    69 posts
    Member since:
    Feb 2009

    Posted 28 Jul 2011 Link to this post

    Hello, 

    In fact i just put a Label on top out of the RadGrid and in the ItemDataBound i set the Text.
    That's it.



    Jean-Yves
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017