ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

Footer template duplicating in selection

Open brianchance opened this issue 12 years ago • 11 comments

I was working on adding a paging panel to the footer using a custom footerTemplate, but when I also use ui-grid-selection, I get my additions in both the footer and the selection column.

A plunker is worth more - http://plnkr.co/edit/RUDBAylqlXdbiEdzfKeq?p=preview

Based on the injected html, the selection looks like pinned columns, guessing that makes sense that it has the footer panel. Thoughts on how to add another full width panel?

brianchance avatar Oct 23 '14 15:10 brianchance

ii was having the same issue how did you get around this

mplayer avatar Oct 29 '14 19:10 mplayer

I ended up appending my own panel to the main div so it is under all render containers (pinned left, body, pinned right), then setting its position to relative. take a look here - https://github.com/brianchance/ng-grid/tree/3.0-paging/src/features/paging

The main ui-grid directive will also transclude any content, which might work.

brianchance avatar Oct 29 '14 20:10 brianchance

can you send me a example of using this directive you created . Also will this be merged into the main branch

mplayer avatar Oct 29 '14 21:10 mplayer

Here is the pull request - https://github.com/angular-ui/ng-grid/pull/1935

Not sure if it will be merged

On Wed, Oct 29, 2014 at 4:38 PM, mplayer [email protected] wrote:

can you send me a example of using this directive you created . Also will this be merged into the main branch

— Reply to this email directly or view it on GitHub https://github.com/angular-ui/ng-grid/issues/1893#issuecomment-61009703.

brianchance avatar Oct 29 '14 21:10 brianchance

i have added a feature to also do client side paging. Also implement angular ui pagination for the pager too. if you are interrested in it i could do a pull request for it

malplayer avatar Nov 01 '14 04:11 malplayer

I implemented paging here (https://github.com/brianchance/ng-grid/tree/3.0-paging) but would like to see what others have done.

brianchance avatar Nov 03 '14 14:11 brianchance

right correct i look at your code and modified it to work with servrside paging and client side paging. I added a flag for doing client side paging. Also change the page to use bootstrap pagination controller. That way you do need some of the methods like can page forward. would you like me to do a fork of your branch to check in my changes

malplayer avatar Nov 03 '14 14:11 malplayer

I would do a separate pull request for them. I had issues with client side paging and sorting/filtering since it only worked on the current page.

brianchance avatar Nov 03 '14 14:11 brianchance

ok well i go the clent side paging to work. haven't do sorting or filtering yet. also if there way to make the directive you create use a custom template. So if the user want to use a different paging template that the one provided

malplayer avatar Nov 03 '14 14:11 malplayer

It does use a custom template... https://github.com/brianchance/ng-grid/blob/3.0-paging/src/features/paging/templates/ui-grid-paging.html. It looks for pagingTemplate on the options.

On Mon, Nov 3, 2014 at 8:28 AM, malcolm player [email protected] wrote:

ok well i go the clent side paging to work. haven't do sorting or filtering yet. also if there way to make the directive you create use a custom template. So if the user want to use a different paging template that the one provided

— Reply to this email directly or view it on GitHub https://github.com/angular-ui/ng-grid/issues/1893#issuecomment-61484768.

brianchance avatar Nov 03 '14 14:11 brianchance

i create a pull request

https://github.com/brianchance/ng-grid/pull/1

take a look at it and let me know what you think. I can add ng-doc comments and test tommrrow if you want

malplayer avatar Nov 04 '14 03:11 malplayer