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

How to set the footer static in the bottom of the Grid

8 Answers 662 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
Anto (DLL Version : 2008.3.1314.35) asked on 24 Apr 2010, 08:08 AM
Hi All

Have a radgrid with which works fine.

I have set the PageSize="6", AllowPaging ="true", then in PagerSytle have set AlwaysVisible="true". have set the grid height="250px".

But there are only 2 records in the grid. So the footer is displayed below the 2 records.

have attached an screen shot.

Is there any option to rectify this.

-Anto



8 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 27 Apr 2010, 08:59 AM
Hello Anto,

Please enable scrolling and static headers in the control's client settings.

http://www.telerik.com/help/aspnet-ajax/grdscrollwithstaticheaders.html

Regards,
Dimo
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
answered on 27 Apr 2010, 02:17 PM
Dimo,

Thank you very much,

It worked.

-Anto
0
Brian Azzi
Top achievements
Rank 2
answered on 11 May 2011, 06:44 PM
Sigh... is there any option to do this is we do not wanting scrolling enabled? Having scrolling enabled causes ridiculously annoying flickering when updating with the RADAJAX control as it quickly resizes the headers. If I don't want this, my option is to turn off scrolling, but then my footer floats up to the data (which again is inconsistent behavior)...
0
Pavlina
Telerik team
answered on 17 May 2011, 10:08 AM
Hi Brian,

Fixed grid height and the bottom footer position can be ensured only when scrolling with static headers is used. Otherwise the RadGrid will be as high as its data and the footer will always be adjacent to the last data row.

Regards,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Brian Azzi
Top achievements
Rank 2
answered on 17 May 2011, 03:24 PM
Ok... then find me a way to stop the horrible flickering when scrolling is enabled and I'll be happy! : )  Most of my grids are fairly dynamic, and are frequently refreshed using RadAjax calls... and this causes an absolutely horrible flicker shift of the columns as they determine whether vertical scrolling is enabled or not (I assume). At any rate, this creates a very unpleasant effect to our end users... one that I simply have not been able to fix. Any suggestions? I can submit a support request if that is easier or more desired, but I started here in the forums in case any others might have a quicker fix.
0
Pavlina
Telerik team
answered on 18 May 2011, 02:05 PM
Hello Brian,

Refer to the forum thread below which elaborates on this matter and let me know if it helps to resolve this problem:
http://www.telerik.com/community/forums/aspnet-ajax/grid/grid-header-moves-on-ajax-postback.aspx

All the best,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Brian Azzi
Top achievements
Rank 2
answered on 18 May 2011, 02:35 PM
Yes, that link explains the situation & I have definitely seen that post before (perhaps I should have posted my response there, sorry)... but the workarounds are generally: "make a scrollbar visible"... which I don't want. I want scrolling to work the way its supposed to, and without flicker... this can't be that uncommon of a scenario. : )  

The way I see it, I have maybe a couple options:

1) change all my grids to client side binding (ouch... a big coding investment there, not to mention some other wierdness with things like centering column data, etc).
2) Maybe it would be possible to dynamically change the header div padding & margin styles dynamically so that I have them set to not show scrolling if I know the grid is not going to be scrolled, or show scrolling if I need it... this could be viable, but is also difficult since my grid height can change (thus changing the scroll height).
3) other ideas?? ...

Thanks,
-Brian
0
Pavlina
Telerik team
answered on 24 May 2011, 11:43 AM
Hi Brian,

In order to remove the flicker completely, you will have to remove the UseStaticHeaders="True" setting or set it to "False".

If you have to use scrolling with static headers, you can at least remove the vertical resizing flicker by setting ScrollHeight in the Scrolling settings of RadGrid. In this case you should remove the RadGrid's Height property.

Regards,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
Answers by
Dimo
Telerik team
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
Brian Azzi
Top achievements
Rank 2
Pavlina
Telerik team
Share this question
or