This is a migrated thread and some comments may be shown as answers.

[Solved] ClientSide paging with false rows

4 Answers 159 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Anthony
Top achievements
Rank 1
Anthony asked on 07 Nov 2014, 02:49 PM
Hi
  I have a grid that is clientside paged. It seems I have 2 options to stop the grid resizing on the last page

(1) set a height on the grid, this works but it means that on the last page I get a gap at the bottom rather than the alternating lines, e.g. on a page of 20 items if I have 1 item on the last page I just get a bug blank space in the grid

(2) Add false lines, this works and looks right but then the items count of the grid is wrong

Is there any way of having false alternating lines at the bottom of the page but still having the count correct?

Thanks

4 Answers, 1 is accepted

Sort by
0
Anthony
Top achievements
Rank 1
answered on 10 Nov 2014, 10:32 AM
Just to add, this is only a problem with clientside paging, with serverside paging you can add in extra dummy rows, return the correct count and it displays the count correctly
0
Accepted
Alexander Valchev
Telerik team
answered on 11 Nov 2014, 12:21 PM
Hello Anthony,

There is no build-in solution that will allow you to achieve this out of the box. One possible approach that you may take is to add fake <tr> elements (not records in the DataSource). Please check the following example: http://dojo.telerik.com/@valchev/UWeWA

I hope this will help.

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Anthony
Top achievements
Rank 1
answered on 11 Nov 2014, 12:48 PM
Thanks for that, at the moment on that page I just get "Failed to load snippet."

I'll try it again later
0
Anthony
Top achievements
Rank 1
answered on 11 Nov 2014, 03:12 PM
It's working now.

That seems ideal thanks
Tags
Grid
Asked by
Anthony
Top achievements
Rank 1
Answers by
Anthony
Top achievements
Rank 1
Alexander Valchev
Telerik team
Share this question
or