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

RadGrid no footer

1 Answer 41 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pat
Top achievements
Rank 1
Pat asked on 15 Dec 2014, 07:44 PM
I have set the number of rows per page to 15.  When I have fewer than 15 rows the footer is not displayed.  When I have more than 15 row the footer is displayed with the various counts and navigation buttons are displayed.  ( Page 1 of 34, items 1 to 15 of 500)  My client wants the footer displayed when less than 15 records and have a count  something like the following.   (Page 1 of 1, items 1 to 10 of 10)  I defined my grid as follows.

            RadGrid1.ID = "RadGrid1";
            RadGrid1.DataSourceID = "SqlDataSource1";
            RadGrid1.MasterTableView.DataKeyNames = new string[] { "Jobnumber" };
            RadGrid1.Skin = Theme;
            RadGrid1.EnableEmbeddedSkins = false ;
            RadGrid1.Width = Unit.Percentage(100);
            RadGrid1.PageSize = 15;
            RadGrid1.AllowPaging = true;
            RadGrid1.PagerStyle.Mode = GridPagerMode.NextPrev;
            RadGrid1.AllowSorting = true;
            RadGrid1.AllowFilteringByColumn = false;
            RadGrid1.AutoGenerateColumns = false;
            RadGrid1.ClientSettings.Resizing.AllowColumnResize = true;
            RadGrid1.ClientSettings.Resizing.ResizeGridOnColumnResize = true;
            RadGrid1.ClientSettings.Resizing.ClipCellContentOnResize = true;
            RadGrid1.ClientSettings.AllowColumnsReorder = true;
            RadGrid1.ClientSettings.ColumnsReorderMethod = GridClientSettings.GridColumnsReorderMethod.Reorder;
            RadGrid1.GridLines = GridLines.Both;
            
            RadGrid1.EnableViewState = true; 

            
            RadGrid1.ItemCommand += new GridCommandEventHandler(RadGrid1_ItemCommand);
            RadGrid1.PageIndexChanged += new GridPageChangedEventHandler(RadGrid1_PageIndexChanged);

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 16 Dec 2014, 09:07 AM
Hi,

In order to make grid pager always visible you should set AlwaysVisible properly to true:
RadGrid1.PagerStyle.AlwaysVisible = true;


Regards,
Pavlina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Pat
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or