paginator

Why doesnt paginator remember my custom parameters when I go to page 2?

When using the paginator helper in cakephp views, it doesnt remember parts of the url that are custom for my useage. For example: http://example.org/users/index/moderators/page:2/sort:name/dir:asc here moderators is a parameter that helps me filter by that type. But pressing a paginator link will not include this link. ...

How to paginate an ObservableCollection?

Hello all, I have a ListBox with way too many items in it and the UI is getting slower and slower (virtualization is on, etc). So I was thinking about displaying only the first 20 items and allow to user to navigate through the result set (i.e. ObservableCollection). Does anybody know if a Pagination mechanism exist for the ObservableC...

Saving and printing XPSDocument through Paginator (seems to)causes a rasterization of the content

I use the WPF Printing Path to handle big large diagrams created in our application. The whole diagram consists of visuals. A so called "DesignerPaginator" paginates the diagram (it is quite simple). From this point, I do the following three thing: - I print the Document with PrintDialog.PrintDocument(Paginator, Title) - I also create a...

Issues with XPSDocumentWriter and PrintDialog.PrintDocument

Our company is developing an application (WPF, targeted to .NET 3.5) with the WPF Diagramming Components from MindFusion.Apparently, printing and saving XPS Documents results in various errors on different systems. I reduced the problem to a single sample XPS Document created from our application.I'll first give an overview of the conce...

SO-like paginator,how much more mathematical flavour can you add to it?

function paginator($totalPages,$currentPage) { if($currentPage > $totalPages) return false; $aheadmin = max(1,$currentPage - ($totalPages - $currentPage > 3 ? 2 : (5 - ($totalPages - $currentPage) -1))); if($aheadmin - 1 > 1) { $str = '1 ... '; $aftermax = min($currentPage + 2,$totalPages); } else ...

original request for yui-datable and paginator displays 'no records'

I have a simple table that performs a JSON request to get data. Everything worked fine until I got too many records and added a paginator. Now, the initial request returns 52, entries, but my yui-databale displays 'no records', until I change let's say the number of items per page, then it refreshes the widget properly. Here's the code...

Pagination problem

I'm using this code for my pagination, and I'd like the user's choice to be persistent throughout the site (this has been solved so far)...the only problem now is that the session variable now is permanent until the session is cleared by closing the browser. Also, how can I get the adjacent pages displayed...like in the digg-style Djang...

Paginator doens't store search parameters

i'm using jpinedo.webcindario.com/scripts/paginator at my search script, but when i click on the page 2 the parameters from the first search are lost (i get my own message for "you need to type at least 2 characters") how can i make it work? this is my search.php: $q = mysql_real_escape_string($_POST['q']); $option = mysql_real_escape_...

Cakephp pagination problem with next/previous

Hello, Let's say I have this page with pagination: localhost/fr/users/index/page:1 I see the correct results for page 1 based on how I have defined the paginate var in my controller. But when I click the next button, the url change to page:2 but the results don't change and are the same as page:1, same thing for page:3, page:4 and so ...

Redirecting paginator->sort to the first page in Cakephp

How do I do a paginator sort and also specify it to go to the first page: echo $paginator->sort('Make', 'Car.make'); If you're on page 6 and want to sort the list by car make. It sorts the list but puts you on page 6 of the sorted list. When someone clicks on the sort by "make" button, I want the paginator to take them to page 1 of th...

zend framework paginaator results too slow

I have a query that running way too slow. the page takes a few minutes to load. I'm doing a table join on tables with over 100,000 records. In my query, is it grabbing all the records or is it getting only the amount I need for the page? Do I need to put a limit in the query? If I do, won't that give the paginator the wrong record count?...

How to generate page numbers using javascript?

How do I generate page numbers for a multi page data set using javascript? Consider there are 55 pages. I want to generate page numbers like this 1 2 3 4 5 ..... 55 next Which is rather similar to the Stackoverflow questions pager Any suggestions? ...

How do I set YUI2 paginator to select a page other than the first page?

I have a YUI DataTable (YUI 2.8.0r4) with AJAX pagination. Each row in the table links to a details/editing page and I want to link from that details page back to the list page that includes the record from the details page. So I have to a) offset the AJAX data correctly and b) tell YAHOO.widget.Paginator which page to select. According...

Extend django.core.paginator Paginator to work with Google App Engine

How would one extend the Paginator class in django.core.paginator to work with Google App Engine queries? ...

How to show paginated results for the category items of the selected category in CakePHP?

Hello there, Currently i'm having a problem with the pagination of some results. The problem is the following: I have a website with 3 tables: categories, categories_companies and companies. In a many-to-many relationship. When i select one category, it shows the companies that belongs to the selected category. My problem is here! I do...

paginator django tutorial ?

I am trying to implement a simple paginator example. Is there any tutorial, example that runs through one SIMPLE example from start to finish. urls.py views.py settings.py models.py I am aware of this one: http://docs.djangoproject.com/en/1.1/topics/pagination/ But this assumes you already have urls, models and settings. Thanks. ...

Filter results for Django paginator in template

I'm filtering out results from my page_obj in a generic view to only show entries published in the same language as the languge currently set by django-cms (http://www.django-cms.org/en/documentation/2.0/i18n/). This works fine, but adding in support for Django pagination (http://docs.djangoproject.com/en/1.2/topics/pagination/) causes ...

zend framework components DB can't find class Zend_Paginator_Adapter_DbTableSelect

I'm using some Zend libraries outside of the Zend Framework in a small project. I'm using Zend_Db and Zend_Paginator but when I'm trying to set up the pagination using Zend_Paginator_Adapter_DbTableSelect I get an error that it can't find the class. Fatal error: Class 'Zend_Paginator_Adapter_DbTableSelect' not found in C:\xampp\htdocs\...