1. Gii
Well, i don't think there is any need to provide a template for gii implementing AlphaPager. Everyone can create a custom template (as explained here) and add the code for AlphaPager nearly the same as it would be done when adding it to an existing controller and view file.

2. Adding AlphaPager to CListView
This needs a little bit more to be done. Therefore i've created two files derived from CActiveDataProvider and CListView which adds AlphaPager to the ListView widget.

Here is an example for using this with the blog demo app. The posts are selected by the first letter of their title (well it's just an example ):

1. After implementing AlphaPager with CListView - default Filtered values, Records count is no longer showed.
2. How to place AlphaPager in the top of Index View?

Please have a look at CListViews docu for those things. E.g. to make record count visible you'll need to add {summary} to the template property and to make the pager appear at the head you have to place their tags before {items}.

Well, since it's not placed under version control and can't be used via externals, developers will not have unexpected problems with it. I think mentioning it in changelog or upgrade.txt will be enough.

Well, since it's not placed under version control and can't be used via externals, developers will not have unexpected problems with it. I think mentioning it in changelog or upgrade.txt will be enough.

That's right, there wouldn't be unexpected problems. It's in fact pretty simple, because you would only need to do a search/replace on filepath for corresponding import or widget function calls, but i think i for myself wouldn't normally expect such a change when i'm updating an extension from someone else and to be honest this would piss me off

In general i agree that it would be better to prefix the classnames - my fault - and i'll think about how to achieve this in a gently way. Cause i don't wanna code Microsoft-style with keeping all failures and problems just for backward compatibility

I need to get this working with GridView and was thinking about creating an ApGridView class that extends CGridView. Before I did that, I thought I'd check to see if you (yoshi) had any plans on doing so already. Thanks for everything you've already done!

a few posts up is an (quick 'n dirty) example i've done to implement AlphaPager into a GridView by extending the ListView and the DataProvider.
But at the moment i've no further plans on making a clean extension of CGridView.

Thanks for your reply and, again, for your work. I may be the daftest person around, though, as I don't see where you've posted a quick 'n dirty example to implement AlphaPager into GridView. I see your code for extending the ListView and the DataProvider (ApListView and ApDataProvider, respectively), but don't see any reference to GridView. I suspect I'm missing something obvious. Are you just then editing the _view.php template so that it works like a table row?

I've muddled about trying to make an ApGridView class that extends CGridView, based upon what you did with CListView, but I get an error about CPagination not having a getCharSet method. I've figured out that this is happening because $this->pages (in AlphaLinkPager) ends up being a CPagination object, not an AlphaPagination one. I'm currently trying to hunt down why that's happening.

Attached File(s)

No, absolutely not a jerk! Thank you very much for the help and I'm glad I wasn't missing something obvious. Yes, no problem getting that working.

One thing I discovered is that it's best to add a defaultScope() to the model adding an order that uses the same column as the AlphaPager. That way results are restricted by letter (thanks to the AlphaPager) but also in alphabetical order, which I think is more logical. You (yoshi) know this, of course, but others might appreciate the extra info.

NEW VERSION 1.3 RELEASED
--------------------------------------------------------------
With everything needed to include AlphaPager with Grid-/ListView (including AJAX support). ActiveDataProvider, ArrayDataProvider and extended versions of GridView and ListView.
These are reworked versions of those already published within this topic.

Take care when updating from a previous version of Ap, because as mentioned by samdark i've updated the file- and classnames to avoid potential naming-conflicts. See README.txt from the package!