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

RadGrid: nav buttons (page 1/n..)

3 Answers 31 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Roberto
Top achievements
Rank 1
Roberto asked on 09 Aug 2011, 02:49 PM
Hi, I can't make the navigation buttons to appear when the rows count doesn't fit in a page. I need the backwards/forwards buttons and Page 1/N to appear under the grid.

Thanks

Robert

3 Answers, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 12 Aug 2011, 08:26 AM
Hi Roberto,

Have you set AllowPaging="true"? Also, make sure that RadGrid.PagerStyle.Visible  is not set to false. If this issue persists, can you show us  your RadGrid definition?

Veli
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Roberto
Top achievements
Rank 1
answered on 12 Aug 2011, 02:15 PM
I just set the AllowPaging property to true but it still doesn't work. What puzzles me is that I copied the code from another aspx that works, although with minor changes (no columns definitions, the AutoGenerateColumns, property is set to true). If the results contains more rows than can fin in a page, the verrical scroll bar appears but as I told you I want the navigation buttons instead. This is the RadGrid definition:

 

 

<telerik:RadGrid ID="Grilla5" runat="server" DataKeyNames="id" GridLines="None"

 

 

 

Height="400px" PageSize="12"

 

 

 

AllowSorting="true"

 

 

 

AllowPaging="true"

 

 

 

SkinID="Grilla2" Width="700px">

 

 

 

<clientsettings enablepostbackonrowclick="true">

 

 

 

</clientsettings>

 

 

 

<mastertableview

 

 

 

nomasterrecordstext="No hay registros para mostrar...">

 

 

 

</mastertableview>

 

 

 

</telerik:RadGrid>

 


 

0
Veli
Telerik team
answered on 15 Aug 2011, 11:53 AM
Can you give us the exact version of the RadControls suite you are using? The sample code you provided does not give us any clue as to what might cause this issue. I only noted you have set SkinID in your grid definition, suggesting that an ASP.NET skin is used to style this control. As you may know, ASP.NET skins allow you to define additional properties of the server control in the .skin file that is applied. You may want to check if the Grilla2 skin is not defining any behavior-related properties of RadGrid. Finally, the DataKeyNames property is defined in the GridTableView class, meaning it should be set for the RadGrid.MasterTableView object, not for the RadGrid instance itself.

Greetings,
Veli
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Roberto
Top achievements
Rank 1
Answers by
Veli
Telerik team
Roberto
Top achievements
Rank 1
Share this question
or