This is a migrated thread and some comments may be shown as answers.

Footer Position

11 Answers 337 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 25 Mar 2009, 12:26 PM
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

11 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 25 Mar 2009, 12:34 PM
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

0
Mark
Top achievements
Rank 1
answered on 25 Mar 2009, 12:54 PM
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
0
Princy
Top achievements
Rank 2
answered on 25 Mar 2009, 01:53 PM
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.
0
Jean-Yves
Top achievements
Rank 1
answered on 10 Apr 2009, 06:56 PM
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
0
Jean-Yves
Top achievements
Rank 1
answered on 08 Jul 2009, 11:01 AM
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
0
Pavlina
Telerik team
answered on 08 Jul 2009, 11:18 AM
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.
0
Jean-Yves
Top achievements
Rank 1
answered on 10 Aug 2009, 03:10 PM
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
0
Princy
Top achievements
Rank 2
answered on 11 Aug 2009, 10:26 AM
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.
0
Jean-Yves
Top achievements
Rank 1
answered on 14 Aug 2009, 07:31 AM
Thank you very much !!!!!

It's a great solution.
0
Daniel Aquere
Top achievements
Rank 2
answered on 28 Jul 2011, 04:00 AM
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
0
Jean-Yves
Top achievements
Rank 1
answered on 28 Jul 2011, 08:40 AM
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
Tags
Grid
Asked by
Mark
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Mark
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Jean-Yves
Top achievements
Rank 1
Pavlina
Telerik team
Daniel Aquere
Top achievements
Rank 2
Share this question
or