I have problem with paging total number information in telerik grid.
If grid has no records i get NaN z undefined message.
Is here any workaround?
Thanks
Martin
9 Answers, 1 is accepted
Thank you for reporting this bug. I am sending you a minified version of the patched telerik.grid.js file. I also updated your Telerik points.
Greetings,Atanas Korchev
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!
I also noticed when the grid has no records, and the grid is configured with ajax binding and server binding on first load, the grid will also fire the ajax request on load.
is this normal behavior? do the client side grid check at load if it contains data to decide if to fire the ajax call?
Thanks.
Are you sure that you have properly updated the JavaScript file? Also make sure the browser cache is clean - you are probably loading the old file.
Regards,Atanas Korchev
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
Before:
total:
function
(data) {
if
(data) {
data =
this
.convert(data);
return
!$.isArray(data) ? data.total || data.Total : data.length;
}
return
0;
},
After:
total:
function
(data) {
if
(data) {
data =
this
.convert(data);
return
!$.isArray(data) ? data.total || data.Total || 0 : data.length;
}
return
0;
},
Registering script:
@(
Html.Telerik().ScriptRegistrar()
.jQuery(false)
.DefaultGroup(group =>
group.Add("telerik.common.js")
.Add("telerik.grid.js")))
Html:
<
script
type
=
"text/javascript"
src
=
"http://aspnet-scripts.telerikstatic.com/mvcz/2011.2.712/telerik.common.min.js"
></
script
>
<
script
type
=
"text/javascript"
src
=
"http://aspnet-scripts.telerikstatic.com/mvcz/2011.2.712/telerik.grid.min.js"
></
script
>
<
script
type
=
"text/javascript"
src
=
"http://aspnet-scripts.telerikstatic.com/mvcz/2011.2.712/telerik.textbox.min.js"
></
script
>
<
script
type
=
"text/javascript"
src
=
"http://aspnet-scripts.telerikstatic.com/mvcz/2011.2.712/telerik.grid.filtering.min.js"
></
script
>
Please advise.
The problem exists in the 2011.2 712 version which is the same version available on CDN. We do not currently upload internal builds to CDN - you need to use the local version of the JavaScript files.
Regards,Atanas Korchev
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>