Page Size control of RadGrid not working

3 posts, 0 answers
  1. Mansi Deshpande
    Mansi Deshpande avatar
    2 posts
    Member since:
    May 2010

    Posted 26 May 2010 Link to this post

    Issue with RADGrid control:


    We are using an RAD Grid which populates data from a webservice. We have paging enabled on this grid and use the by default pager whichcomes with a “Page Size” drop down, giving us option to choose desired pagesize. To avoid page reload every time we click the page number to view the rowson other page, we use RAD AJAX Manager. This Grid has ”Export to PDF” and“Export to Excel “ Buttons also.

    We finally deploy this page on a Share Point WebApplication. In SharePoint, once we click on any export button, all othercontrols are disabled which gets enabled only after refreshing the page.  We have found a solution for this as depictedhere:



    This helped us to get rid of that issue.


    Presently our RAD Grid is working fine, but we are  facing issues with “Page Size” controls.Which works only for the first time. After that it does not allow me to selectany value from “Page Size” combo box. It just gets disabled.

    However everything works fine with standalone application but the issue is after deploying to sharepoint.

    this is the code snippet i am refferingto:


    <telerik:RadAjaxManagerID="RadAjaxManager1" runat="server">


    <telerik:AjaxSetting AjaxControlID="RadGrid2">


    <telerik:AjaxUpdatedControl ControlID="RadGrid2" />






    <telerik:RadGrid ID="RadGrid2"runat="server" AllowPaging="True"

    AllowSorting="True" DataSourceID="ObjectDataSource1"GridLines="None"

    onneeddatasource="RadGrid2_NeedDataSource"Visible="False"  >



    <MasterTableViewAutoGenerateColumns="False" CellSpacing="-1"










    <telerik:GridBoundColumn DataField="ID"HeaderText="ID"

    SortExpression="ID" UniqueName="ID"DataType="System.Int32">


    <telerik:GridBoundColumn DataField="ContactName"HeaderText="ContactName"



    <telerik:GridBoundColumn DataField="Company" HeaderText="Company"

    SortExpression="Company" UniqueName="Company"DataType="System.Int32">


    <telerik:GridBoundColumn DataField="Phone"HeaderText="Phone"

    SortExpression="Phone" UniqueName="Phone">


    <telerik:GridBoundColumn DataField="Email"HeaderText="Email"

    SortExpression="Email" UniqueName="Email">


    <telerik:GridBoundColumn DataField="Type" HeaderText="Type"

    SortExpression="Type" UniqueName="Type">


    <telerik:GridBoundColumn DataField="Esc"HeaderText="Esc"

    SortExpression="Esc" UniqueName="Esc">


            <telerik:GridBoundColumnDataField="Zip" HeaderText="Zip"SortExpression="Zip"







    <Pdf FontType="Subset"PaperSize="A4" />




    <asp:Button ID="Button1"runat="server" onclick="Button1_Click"

    Text="Export To PDF" Height="32px"Width="141px"

    style="margin-right: 0px" Visible="False" />


    <asp:Button ID="Button2"runat="server" onclick="Button2_Click"

    Text="Export To Excel" Height="32px"Width="141px" Visible="False"  />

  2. Iana Tsolova
    Iana Tsolova avatar
    3388 posts

    Posted 31 May 2010 Link to this post

    Hi Mansi,

    Can you temporary disable ajax and see if the issue persists and if you have any server-side errors? Also try removing the NeedDataSource event handler ass it is odd when you are binding the grid using declarative datasource control. It also might be of help if you can send us the server-side code used.

    Let me know how it goes.

    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.
  3. Mansi Deshpande
    Mansi Deshpande avatar
    2 posts
    Member since:
    May 2010

    Posted 02 Jun 2010 Link to this post

    Hi Lana,

    Thanks for your reply. Appreciated!!

    As per your suggestion, if I disabled ajax, then all controls inside the grid were working fine but end up  with entire reload of page. Since our requirement was specific to grid and not the entire page reload I thought of another solution which is as follows.

    I removed AJAXManager from my code and moved the RadGrid control inside the Ajax Update panel.Thereby i got the solution.

    Anyways, thanks for all your efforts and the time considered for me.


Back to Top