Questions tagged [backbone.paginator]

Backbone.Paginator is a pagination component for Backbone.js.

Pagination is a ubiquitous problem we often find ourselves needing to solve on the web.
Perhaps most predominantly when working with back-end APIs and JavaScript-heavy clients which consume them.

Paginator’s pieces

Backbone.Paginator supports two main pagination components:

  • Backbone.Paginator.requestPager: For pagination of requests between a client and a server-side API
  • Backbone.Paginator.clientPager: For pagination of data returned from a server which you would like to further paginate within the UI (e.g 60 results are returned, paginate into 3 pages of 20)

GitHub link.

17 questions
4
votes
2 answers

Is it possible to do this pagination without backgrid?

I'm trying to implement server side pagination like datetable and I found backbone.paginator library, I don't know if there is something else. Through their examples they used another library to help accomplishing this which is backgrid.js and its…
3
votes
2 answers

How can we do paging with backbone marionette composite view?

I am new to backbone and marionette. Now i m trying to implement paging with compositeview of marionettejs. Below is my code, what happens here that when a new fetch is done through my custom pager, existing data is getting replaced by new set of…
2
votes
1 answer

How to handle pagination with Backbone.PageableCollection and a custom Express route

I am writing an app that uses a database called LeanCloud. I have set up a page where I can view all of the users on the database, but LeanCloud is set to only send 100 pieces of data per request. There are currently 853 users in the DB and I could…
2
votes
1 answer

Backbone.Paginator infinite mode, with Marionette

In my Marionette app, I have a Collection view, with a childView for it's models. The collection assigned to the CollectionView is a PageableCollection from Backbone.paginator. The mode is set to infinite. When requesting the next page like so…
miphe
  • 1,763
  • 1
  • 20
  • 33
2
votes
1 answer

Backbone.Collection.reset() => child view is out of sync with parent

I have a list of items. They are stored in backbone pageable collection. They are displayed like…
coderek
  • 1,860
  • 14
  • 20
2
votes
1 answer

Backbone.paginator reset state

I'm using backbone.paginator in server mode, version 2.0.2. At some point ( in backbone view file) I need to reset PageableCollection state. Basically I need to set currentPage to 0 or my default values, either by reset or in some other way. Since…
Premek
  • 99
  • 1
  • 6
2
votes
1 answer

Backbone.Paginator : cannot read property 'requestPager'

Similar to question 21560374. I am trying to implement Backbone.Paginator version 0.8 and on page load I am meet with the error: Uncaught TypeError: Cannot read property 'requestPager' of undefined. First I referred to the CDNJS file and then I…
Spencer
  • 47
  • 4
1
vote
0 answers

Backbone Paginator breaks Webpack

I have a small app that uses Webpack and backbone.paginator. It works perfectly without webpack. With webpack, when I require backbone.paginator in my collection, it completely breaks the app. I don't even have to use the paginator, simply requiring…
mprather
  • 170
  • 1
  • 1
  • 8
1
vote
1 answer

Backbone.PageableCollection's fullCollection acts weird after reset

I have a Backbone.Pageable collection on which I am trying to do a filter but and reset the collection with the filtered values but after the reset, collection.fullCollection has one less model than the original. This is my collection: var…
shahsank3t
  • 252
  • 1
  • 13
1
vote
2 answers

Backbone.Paginator in 'infinite' mode throws 'Maximum call stack size exceeded' on model.destroy

I'm completely stuck on this one and can't figure out exactly why this is happening. I'm using Backbone.Paginator within a Marionette application. Also, for the API I'm using Tastypie, which shouldn't matter, but I want to be as thorough in my…
0
votes
1 answer

oData v3 setting $format to application/json;odata=verbose doesn't convert to old json format

I'm working on a backbone.js app that GET the odata format from the controller: public IQueryable Get() { return dbContext.ContactsList.AsQueryable(); } But the way I receive the data is in the following format odata.count:…
user1828605
  • 1,723
  • 1
  • 24
  • 63
0
votes
3 answers

Iterating through a Backbone.PageableCollection not working

I have a Backbone.PageableCollection (@customers) whose models I would like to iterate through. I have tried many things -- including what I thought was obvious: @customers.each (customer) -> console.log customer Unfortunately, this logs out…
Erik
  • 7,479
  • 8
  • 62
  • 99
0
votes
1 answer

Backbone.Paginator : cannot read property 'requestPager' why?

I downloaded the Backbone.Paginator production version. I went through the example, copied and pasted everything exactly the way it appears, but I keep getting cannot read property 'requestPager'. What am I doing wrong? I already made the reference…
user1828605
  • 1,723
  • 1
  • 24
  • 63
0
votes
1 answer

Backbone.paginator - Get toJSON of origModels

I'm using Backbone.Paginator clientPager. Currently it copies the models fetched from the server inside this.origModels. And modifies this.models to the truncated paginated version. When I do collection.toJSON I get only the truncated version. I…
Bharathwaaj
  • 2,627
  • 2
  • 22
  • 35
0
votes
1 answer

getting jsonp to work in asp.net api

having issues getting my jsonp to work with my client backbone script,pagenator keep gettgin invalid key error having looked around people say its to to do with my service not return jsonp. For example SyntaxError: invalid label, i've written a…
user2286483
  • 169
  • 1
  • 3
  • 11
1
2