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

[Solved] RadGrid resize : only pager goes bottom

2 Answers 162 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Osman Saeed
Top achievements
Rank 1
Osman Saeed asked on 13 Nov 2009, 11:24 PM
Hi,
      I want to resize the RadGrid on the client side on window resize. Right now, i can do that. The issue is that the whole mastertable got resized as i set the height to be 100%. 
      I want the master table to be 100% but i do not want the rows to be resized (stretch). I want fix size for the rows. So, if there is no data i want empty grid with 100 % height and the pager right at the bottom. Similarly, for less records, show few records and then all empty space and then right at the bottom, show the pager.
       Right now , it strectches all the records height to fill the space. It does resize though which is great.
      Also, i have custom paging on, so i only fetch data page by page. The virtual count is also set programmatically. now, how can i achieve the functionality ?

Regards,

Osman
Senior Developer

2 Answers, 1 is accepted

Sort by
0
Osman Saeed
Top achievements
Rank 1
answered on 16 Nov 2009, 03:14 PM
Hi, (updare on the issue)
    The issue still remains. Another addition to it : If i chnage the page size, it still show the same amount of data on the page (does not resize rows), the extra rows are invisible. Thanks,

Regards,

Osman
0
Dimo
Telerik team
answered on 16 Nov 2009, 04:09 PM
Hello Osman,

For the first question about resizing and pager position: you need to use RadGrid scrolling with static headers:

http://www.telerik.com/community/code-library/aspnet-ajax/grid/setting-100-height-and-resize-on-container-resize-for-grid-with-scrolling-and-static-headers.aspx

http://www.telerik.com/community/code-library/aspnet-ajax/grid/how-to-set-radgrid-height-client-side-with-javascript.aspx

For the second question - I am not sure whether this is related to the first one (rows not seen because of the height style) or is something different. If the problem persists after applying scrolling with static headers, please send us a simple demo.


Greetings,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Osman Saeed
Top achievements
Rank 1
Answers by
Osman Saeed
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or