I’m trying to find a way to create a footer that will span all columns in an Telerik MVC Grid.
I’ve tried the templates, but they only span the column they’re are assigned to … any ideas?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For what i can see, the footer template in the Telerik MVC Grid is per column only. There’s no property that we can play with to have full control on the footer.
Until Telerik release a future version with this feature, i suggest you to build your own footer with javascript on the OnLoad event of the grid. There’s different ways to accomplish this. My example below use jQuery + jQuery.tmpl().
Please note that this example will only work if your grid is in Ajax mode. Its because the html code that is rendered by the Telerik MVC Grid is different if you use it in Ajax or Server mode. If you use your grid in Server mode, look at the html syntax that is rendered by the grid to ajust your javascript code.
Grid definition
OnLoad function
jQuery Template