One post, two questions.
1) I've been asked to show the record count in the grid footer. Probably they want something like:
Records 51-100 of 353
It should also say when there's a filter applied, like this:
Records 1-31 of 31 (filtered from 353)
I'd love to stick this in the paging area on the left side, across from the page numbers.
2) When I set the grid height to 100% and open a new tab/window for the page, it looks ok, but if the user maximizes the page, there's now what looks like one really tall blank row at the end. Before maximize: Window scrolls as needed to get to bottom of records, where I see a normal bottom to the grid. After maximize: Window scrolls as before, but at the bottom I have a tall blank space within the grid control, after the last records. Refreshing the page fixes it.
Anyone have ideas on either of these?
Rumen -
I'll take a look at pager templates to see if it's worth the extra coding effort. For the height issue, leaving the height completely blank did in fact fix the weird display issue. Thanks!
John
Hello,
#2 - The Height 100% problem you experience - I played a bit with the setup you describe and I got pretty good results if I did not set the Height property of the grid at all (e.g. do not set Heighjt = 100%, just do not set Height at all). In this case, the grid auto-expands to the height of the rows in the grid and behaves better when resized.
I think the best way to do it is to use to PagerTemplate functionality of the Paging behavior. However, in this case you would also have to code the paging functionality as well (including the actual page number links), so it will require some coding. e.g.
<Behaviors> <ig:Paging PagerAppearance="Bottom" PageSize="10" PagerCssClass="igg_CustomPager" Enabled="true"> <PagerTemplate> // custom HTML here </PagerTemplate> </ig:Paging></Behaviors>
A good example on using PagerTemplate can be found here.