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

[Solved] status of "Page On Scroll"(virtual scroll) show "Displaying items 0 - 0 of 0"

1 Answer 41 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.
Ofer
Top achievements
Rank 1
Ofer asked on 09 Aug 2011, 11:31 AM
Hi'

i followed your "Page On Scroll" sample and the grid status show zeroes.
Thats my partial view:

@

 

using GRT.VML.DML.App

@model

 

IEnumerable<Activity>

@{

Html.Telerik().Grid(Model).Name(

 

"TrackActivitiesGrid")

.DataKeys(a => a.Add(

 

"ActivityId"))

.Columns(columns =>

{

columns.Bound(a => a.CreatedUTC).Format(

 

"{0:M.dd.yyyy @ hh:mm}").Title("Date/Time");

columns.Bound(a => a.ActivityName).Title(

 

"Activity");

columns.Bound(a => a.UserFirstName).Title(

 

"User")

.ClientTemplate(

 

"<div class='vtip' title='User Name: <#= UserName #>'><#= UserFirstName #> <#= UserLastName #></div>");

columns.Bound(a => a.UnitCount).Title(

 

"# Units");

columns.Bound(a => (a.InProgressCount)).Title(

 

"Progress");

columns.Bound(a => a.CanceledCount);

})

.DataBinding(dataBinding => dataBinding.Ajax().Select(

 

"_PageOnScroll", "TrackActivities"))

.ClientEvents(events => events.OnLoad(

 

"TrackActivities.onGridLoad"))

.Sortable()

.Pageable(paging => paging.Style(

 

GridPagerStyles.Status)

.PageOnScroll(

 

true)).Render();

}


1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 10 Aug 2011, 07:13 AM
Hello Alonav,

Does your action method returns any data("PageOnScroll") ?
For your convenience I am attaching sample app and it seems that everything is working properly.

Best wishes,
Nikolay
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

Tags
Grid
Asked by
Ofer
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or