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

[Solved] Grid Footer

2 Answers 116 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
prashant
Top achievements
Rank 1
prashant asked on 21 Jul 2011, 08:04 PM

Hi , 

Please see the footer in the attached image and we want the footer to look like this.
Could you please help how can I achieve the functionality. Could you please provide sample code.

Thanks

2 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 22 Jul 2011, 09:39 AM
Hello Prashant,

What you need is a pager template. The Grid currently does not support this, but you can create a toolbar template and place the toolbar at the bottom of the Grid.

http://demos.telerik.com/aspnet-mvc/grid/customtoolbar

In order to display the correct page numbers, you can use the following client Grid object properties:

var grid = $("#Grid-ID").data("tGrid");

// grid.currentPage
// grid.pageSize
// grid.total

Upon clicking on the custom pager links, you can use the pageTo() client API method:

http://www.telerik.com/help/aspnet-mvc/telerik-ui-components-grid-client-api-and-events.html#ClientMethods

You should change the pager content (the links' text) in the Grid's OnDataBound client event handler, which will be fired after each paging.

http://www.telerik.com/help/aspnet-mvc/telerik-ui-components-grid-client-api-and-events.html#OnDataBound

Greetings,
Dimo
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Jose Luis
Top achievements
Rank 1
answered on 01 Aug 2011, 09:47 PM
Hi,

I am in telerik mvc grid by the way.

How to change euro instead of dollar in the total sum?

thanks,

Greetings,

Jose
Tags
Grid
Asked by
prashant
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Jose Luis
Top achievements
Rank 1
Share this question
or