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

[Solved] Totals in footer templates are not refreshed on AJAX rebind

3 Answers 73 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.
Dean
Top achievements
Rank 1
Dean asked on 18 Feb 2011, 11:59 AM
I have a grid where I am doing a custom grouping, based on a selection from a drop-down.

When binding via Ajax, the footers are not updated. This means that I have to pre-populate the footers before the grid is populated.

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 18 Feb 2011, 12:24 PM
Hello Dean,

 This is by design. You need to update the footer values after the grid is bound using JavaScript. Currently the footer template is only updated from server code.

Regards,
Atanas Korchev
the Telerik team
0
Dean
Top achievements
Rank 1
answered on 18 Feb 2011, 12:33 PM
Thanks, but how do I do that?

Can you give me an example.

I am using MVC3 and Razor.
0
Atanas Korchev
Telerik team
answered on 18 Feb 2011, 12:47 PM
Hello Dean,

 We don't have an example for this at the time being. You can however use the OnDataBound event of the grid and update some HTML element in the footer using jQuery.

Regards,
Atanas Korchev
the Telerik team
Tags
Grid
Asked by
Dean
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Dean
Top achievements
Rank 1
Share this question
or