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

Grid Paging Problem exists

3 Answers 75 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gitanjali
Top achievements
Rank 1
Gitanjali asked on 02 Mar 2009, 06:12 AM
2 days before i asked for the following problem -
im using alphabet paging in Radgrid, whenever we do paging the grid height increases or decreases as according to no. of records and pager(which is showing alphabets) doesn't remain in one location i.e i want it should get freezed at one location so that it does't look like flickering. is it possible?

To resolve this problem i tried setting the Height of the Grid to a fixed value, but by applying this im facing another problem is that grid header, body and footer height increase if no. of records is less than page size. is there any other solution for this?



3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 04 Mar 2009, 01:41 PM
Hi Gitanjali,

In order to maintain a fixed RadGrid height, regardless of the number of records, you should use the following approach:

<telerik:RadGrid Height="350px">
     <ClientSettings>
        <Scrolling AllowScroll="true" UseStaticHeaders="true" ScrollHeight="300px" />
     </ClientSettings>
</telerik:RadGrid>

Please note that Height and ScrollHeight should not be used at the same time. The difference between the two properties is the following:

+ Height applies to the whole RadGrid. ScrollHeight is calculated on the client - some vertical flickering may be visible on initial page load
+ ScrollHeight is applied to the data area, the whole RadGrid control expands to accommodate the data area, header and footer area - no vertical flickering


Kind regards,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Gitanjali
Top achievements
Rank 1
answered on 05 Mar 2009, 06:05 AM
by applying the property AllowScroll=true, my grid starts giving javascript error when grid column is resized, the error is:-
'this.HeaderRow.Cells[...].scrollWidth' is null or not an object.
please help me resolve this problem.
0
Sebastian
Telerik team
answered on 10 Mar 2009, 07:35 AM
Hi Gitanjali,

Can you please verify that you are using the latest version 2008.3.1314 of RadControls for ASP.NET AJAX in your project? If the issue persists, I will request you isolate a stripped working version of your project, demonstrating it, and send it enclosed to a formal support ticket. I will examine your complete code logic and get around to you with my findings.

Best regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Gitanjali
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Gitanjali
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or