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

Radgrid paging not working

14 Answers 898 Views
Grid
This is a migrated thread and some comments may be shown as answers.
josephjijo
Top achievements
Rank 1
josephjijo asked on 15 May 2010, 03:15 PM
 My radgrid paging is not showing.
My code is:
<telerik:RadGrid ID="rdtgContactUs" runat="server" AutoGenerateColumns="False" GridLines="None" 
                                AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" OnInit="rdtgContactUs_Init" 
                                OnNeedDataSource="rdtgContactUs_NeedDataSource" OnItemCommand="rdtgContactUs_ItemCommand" 
                                AllowMultiRowSelection="true" PageSize="25" PagerStyle-Mode="NextPrevAndNumeric" 
 > 
                         
                                <PagerStyle AlwaysVisible="True"  Position="TopAndBottom"  /> 
                                <ClientSettings> 
                                    <Selecting AllowRowSelect="true" /> 
                                </ClientSettings> 
                                <GroupingSettings CaseSensitive="false" /> 
                                <MasterTableView DataKeyNames="ContactID,Replied"
                                    <RowIndicatorColumn> 
                                        <HeaderStyle Width="20px"></HeaderStyle> 
                                    </RowIndicatorColumn> 
                                    <ExpandCollapseColumn> 
                                        <HeaderStyle Width="20px"></HeaderStyle> 
                                    </ExpandCollapseColumn> 
                                    <HeaderStyle Font-Bold="true" /> 
                                    <Columns> 
                                         
                                    </Columns> 
                                </MasterTableView> 
                            </telerik:RadGrid> 
I'm using RadControls for ASP.NET AJAX Q1 2010.
The grid is inside an update panel.

14 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 15 May 2010, 05:14 PM
Hello Jijo,

You won't see the Pager when your RadGrid doesn't have columns. Please either add some columns or enable the autogenerated columns feature (AutoGenerateColumns="true").

Regards,
Daniel
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
josephjijo
Top achievements
Rank 1
answered on 17 May 2010, 10:05 AM
I have the columns. Earlier I removed it while formatting the code block.
Even if data is populated in the grid, the pager is not visible.

 <Columns> 
                                        <telerik:GridBoundColumn DataField="ContactID" HeaderText="ContactID" Visible="false" 
                                            UniqueName="ContactID"
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn DataField="FirstName" HeaderText="First Name" UniqueName="FirstName" 
                                            Visible="true"
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn DataField="LastName" HeaderText="Last Name" Visible="true" 
                                            UniqueName="LastName"
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn DataField="ContactType" HeaderText="Contact Type" Visible="true" 
                                            UniqueName="ContactType" AllowFiltering="true"
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn DataField="PostedDate" HeaderText="Posted Date" Visible="true" 
                                            UniqueName="PostedDate" AllowFiltering="false"
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn DataField="Replied" HeaderText="Replied" Visible="true" 
                                            UniqueName="Replied"
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridTemplateColumn HeaderText="Delete" UniqueName="Delete" AllowFiltering="false"
                                            <ItemTemplate> 
                                                <asp:ImageButton ID="btnDelete" runat="server" ImageUrl="~/Images/deletes.gif" ToolTip="Delete" 
                                                    CommandName="Deletes" Style="cursor: hand" /> 
                                            </ItemTemplate> 
                                            <HeaderStyle HorizontalAlign="Center"></HeaderStyle> 
                                            <ItemStyle HorizontalAlign="Center"></ItemStyle> 
                                        </telerik:GridTemplateColumn> 
                                        <telerik:GridTemplateColumn HeaderText="Reply/View" UniqueName="View" AllowFiltering="false"
                                            <ItemTemplate> 
                                                <asp:ImageButton ID="btnView" runat="server" ImageUrl="~/Images/views.gif" ToolTip="Reply/View" 
                                                    CommandName="Reply" Style="cursor: hand" /> 
                                            </ItemTemplate> 
                                            <HeaderStyle HorizontalAlign="Center"></HeaderStyle> 
                                            <ItemStyle HorizontalAlign="Center"></ItemStyle> 
                                        </telerik:GridTemplateColumn> 
                                        <telerik:GridClientSelectColumn ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" 
                                            UniqueName="Chk_DeleteAll"
                                            <HeaderStyle HorizontalAlign="Center" /> 
                                            <ItemStyle HorizontalAlign="Center" /> 
                                        </telerik:GridClientSelectColumn> 
                                    </Columns> 

0
josephjijo
Top achievements
Rank 1
answered on 18 May 2010, 02:29 PM
Anyone from telerik
0
Daniel
Telerik team
answered on 20 May 2010, 11:26 AM
Hello Jijo,

You can find a runnable demo, attached to this post. Please give it a try and let me know how to modify it to reproduce the problem on my end.

Regards,
Daniel
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
josephjijo
Top achievements
Rank 1
answered on 21 May 2010, 05:02 AM
Hi Daniel,

No it didnt solve my problem.
Also when I run the above example, the pager is showing.
but when I change the page size or filter anything the pager is disappearing.

Regards,
Jijo
0
Accepted
Daniel
Telerik team
answered on 26 May 2010, 09:30 AM
Hello Jijo,

I tested your sample project - it runs fine on my end and the pager is visible all the time. Could you please try the latest version of RadControls for ASP.NET AJAX? There was a problem with the AlwaysVisible functionality when you change the page size in RadControls for ASP.NET Q1 2010.
Q1 2010 SP1 release notes

Regards,
Daniel
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Vladislav
Top achievements
Rank 1
answered on 24 Mar 2011, 02:19 PM
Actually, there is a bug with the pager not showing in (at least) IE 9:
It happens if the very first column of the grid has Display="false".
That results in <COL style="DISPLAY: none"> in HTML, and since the pager is located in the very first column (albeit in the footer), it is not shown in IE.

It works in Firefox, though.
0
Pavel
Telerik team
answered on 25 Mar 2011, 10:18 AM
Hi Vladislav,

I cannot reproduce the described problem in IE9. Please check the attached sample and let me know how to alter it in order to replicate the issue.

Best wishes,
Pavel
the Telerik team
0
Vladislav
Top achievements
Rank 1
answered on 25 Mar 2011, 11:03 AM
Actually, it turns out to be a subtle issue, and it's not RadGrid's fault:

It happens only if the following conditions are met:

1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> is used
2. There is a client-side js handler that's undefined, like OnRowDblClick="myDblClickHandler".
And if "Display notification about every script error is OFF in IE 9, there is no little yellow flag in the bottomleft corner as it used to be (at least I don't see it), so it's not obvious if there is an error.

Below is a full Customers.aspx page that illustrates the problem.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Columns.aspx.cs" Inherits="Columns" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">


<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <telerik:RadScriptManager ID="SM1" runat="server"></telerik:RadScriptManager>
    <telerik:RadGrid ID="RadGrid1" runat="server" OnNeedDataSource="RadGrid1_NeedDataSource" AllowPaging="true"
        AutoGenerateColumns="false" >
                   <ClientSettings>
                        <ClientEvents  OnRowDblClick="myDblClickHandler" /></ClientSettings>


 <MasterTableView TableLayout="Auto" AutoGenerateColumns="false">

            <Columns>
                <telerik:GridBoundColumn DataField="Col1" HeaderText="Col1" UniqueName="Col1" Display="false"
                     >
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Col2" HeaderText="Col2" UniqueName="Col2"
                    >
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Col3" HeaderText="Col3" UniqueName="Col3"
                    >
                </telerik:GridBoundColumn>
            </Columns>
        </MasterTableView>

    </telerik:RadGrid>
    </div>
    </form>
</body>
</html>
0
Rohan
Top achievements
Rank 1
answered on 14 Aug 2012, 09:12 AM
HI all ,
i have problem with radgrid, when the rad grid was resize the  page size combobox  gets freeze . i have attached screen shot of bot before and after .

Before resize



After resize


user not able to select the page size after the resize the rad grid within the radwindow  ...... how can i do this .............
0
Daniel
Telerik team
answered on 17 Aug 2012, 08:10 AM
Hello Rohan,

Please double check your browser console for errors. I suppose that there is a javascript error breaking the aforementioned functionality.

Regards,
Daniel
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Laxman
Top achievements
Rank 1
answered on 15 Nov 2013, 07:11 AM
Hi ,
I am facing problem with pagesize drop down position in new telerik version.
Pls find the details in below.

TQ

http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-header-problem-in-telerik-2013-3-1015-40.aspx

0
Daniel
Telerik team
answered on 20 Nov 2013, 12:09 PM
Hello,

Please stick to the original forum post. My colleague Venelin will handle your question there.

Regards,
Daniel
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Sarang
Top achievements
Rank 1
answered on 09 Jan 2017, 01:54 PM

Hi Rohan,

I am facing simillar issue. How you solved this?

Tags
Grid
Asked by
josephjijo
Top achievements
Rank 1
Answers by
Daniel
Telerik team
josephjijo
Top achievements
Rank 1
Vladislav
Top achievements
Rank 1
Pavel
Telerik team
Rohan
Top achievements
Rank 1
Laxman
Top achievements
Rank 1
Sarang
Top achievements
Rank 1
Share this question
or