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

Grid Paging Problem

3 Answers 113 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gitanjali
Top achievements
Rank 1
Gitanjali asked on 28 Feb 2009, 04:17 AM
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?

here is my code:-

<

telerik:RadGrid ID="rdgCustomers" AllowMultiRowSelection="false" runat="server"

 

 

Skin="Outlook" Width="100%" BorderStyle="None" AllowPaging="true"

 

 

AutoGenerateColumns="true" ItemStyle-Wrap="false" GridLines="None" OnItemCreated="rdgCustomers_ItemCreated"

 

 

OnItemCommand="rdgCustomers_ItemCommand" OnPreRender="rdgCustomers_PreRender"

 

 

oncolumncreated="rdgCustomers_ColumnCreated"

 

 

onsortcommand="rdgCustomers_SortCommand" AllowSorting="true">

 

 

<ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="true">

 

 

<ClientEvents OnRowDblClick="OpenCustomer"/>

 

 

<Resizing AllowRowResize="False" EnableRealTimeResize="True" ResizeGridOnColumnResize="true"

 

 

AllowColumnResize="True"></Resizing>

 

 

<Scrolling AllowScroll="false" UseStaticHeaders="True" />

 

 

<Selecting AllowRowSelect="True" />

 

 

</ClientSettings>

 

 

<MasterTableView CommandItemDisplay="None" TableLayout="Fixed" ClientDataKeyNames="ID,Name"

 

 

ItemStyle-Wrap="false" AutoGenerateColumns="true" DataKeyNames="ID,Name" Width="100%">

 

 

<PagerStyle Wrap="false" Mode="NextPrevAndNumeric" PrevPageImageUrl="Images/arrowLeft.gif"

 

 

NextPageImageUrl="Images/arrowRight.gif" NextPageText="Next" PrevPageText="Prev"

 

 

AlwaysVisible="true" />

 

 

</MasterTableView>

 

 

</telerik:RadGrid>

 

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 02 Mar 2009, 04:55 AM
Hi Gitanjali,

Try setting the Height of the Grid to a fixed value and see whether it helps.

ASPX:
   
            <MasterTableView   TableLayout="fixed"  Height="500px"  > 


Thanks
Shinu
0
Gitanjali
Top achievements
Rank 1
answered on 02 Mar 2009, 06:16 AM
this solution doesn't work as grid layout becomes weird i.e if no of records are coming less than pagesize then the height of grid header, body and footer increase, which looks more odd.
0
Dimo
Telerik team
answered on 04 Mar 2009, 01:43 PM
Hi Gitanjali,

The best option is to enable RadGrid scrolling. I have provided more information in the other forum thread of yours:

http://www.telerik.com/community/forums/aspnet-ajax/grid/grid-paging-problem-exists.aspx

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.
Tags
Grid
Asked by
Gitanjali
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Gitanjali
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or