Page Refresh Issue with RadGrid

4 posts, 1 answers
  1. Scott
    Scott avatar
    15 posts
    Member since:
    Aug 2012

    Posted 02 Nov 2010 Link to this post

    Hey guys,

    Maybe I'm not familiar enough with these controls to understand why this behavior is occurring, but I've spent a good amount of time trying to figure it out, and cannot. Can you help?

    On my initial page load, my grid will display the filter criteria with the drop-down for filter options, the header context menu, the export options, and the paging options. 

    After I click 'Run Report', 'Refresh', or apply a filter, the following things happen unexpectedly.

    1. Filter Criteria drop-down now is disabled and filters cannot be applied.
    2. Header context menu is disabled.
    3. Page Size drop-down is disabled.

    After I click any Export option, the following unexpected things happen. Below is some of the markup that should help.

    <!-- content start -->


    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">






    <telerik:AjaxSetting AjaxControlID="RadGrid1">






    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />









    <telerik:AjaxSetting AjaxControlID="btnRunReport">






    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />















    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="WebBlue">






    <telerik:RadGrid ID="RadGrid1" Skin="Office2007" runat="server" Width="95%" AutoGenerateColumns="False"



    OnNeedDataSource="RadGrid1_NeedDataSource" PageSize="25" AllowSorting="True"



    AllowPaging="True" GridLines="None" EnableHeaderContextMenu="true" AllowFilteringByColumn="true">



    <PagerStyle Mode="NextPrevAndNumeric" />



    <ItemStyle HorizontalAlign="Left" />



    <AlternatingItemStyle HorizontalAlign="Left" />



    <ExportSettings Excel-Format="ExcelML" ExportOnlyData="True" FileName="CommissionStatement"



    IgnorePaging="True" OpenInNewWindow="True" Pdf-Author="International Medical Group"



    Pdf-Creator="International Medical Group" Pdf-PageHeight="8.5in" Pdf-PageWidth="11in"



    Pdf-Title="Commission Statement">



    <Pdf Creator="International Medical Group" Author="International Medical Group" Title="Commission Statement"



    PageWidth="11in" PageHeight="8.5in"></Pdf>



    <Excel Format="ExcelML"></Excel>






    <MasterTableView AllowMultiColumnSorting="false" TableLayout="Fixed" CommandItemDisplay="Top">



    <CommandItemSettings ShowExportToWordButton="true" ShowExportToPdfButton="true" ShowExportToExcelButton="true"



    ShowExportToCsvButton="true" ShowAddNewRecordButton="False" />



    <RowIndicatorColumn Visible="True">









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



    UniqueName="Company" CurrentFilterFunction="StartsWith" AutoPostBackOnFilter="true"









    <telerik:GridBoundColumn DataField="prem_comm_cert_nbr" HeaderText="Certificate Number"



    SortExpression="prem_comm_cert_nbr" UniqueName="CertificateNumber" CurrentFilterFunction="StartsWith"









    <telerik:GridBoundColumn DataField="prem_comm_desc" HeaderText="Primary Insured Name"



    SortExpression="prem_comm_desc" UniqueName="PrimaryInsuredName" CurrentFilterFunction="StartsWith"









    <telerik:GridBoundColumn DataField="cov_desc" HeaderText="Coverage" SortExpression="cov_desc"



    UniqueName="Coverage" CurrentFilterFunction="StartsWith" AutoPostBackOnFilter="true">












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



    <Resizing AllowRowResize="True" AllowColumnResize="True"></Resizing>



    <Animation AllowColumnReorderAnimation="True" />






    <FilterMenu Skin="WebBlue">








    1. The entire Command Item Menu and Footer (where the paging is) simply disappears and no report is exported.

    Please provide any suggestions that you may have. 
  2. Scott
    Scott avatar
    15 posts
    Member since:
    Aug 2012

    Posted 02 Nov 2010 Link to this post

    Ok, I removed the telerik:RadAjaxManager from the page and this is no longer an issue. I'd like to add it back if you see anything wrong with what I'm trying to do and the settings on the RadAjaxManager.


  3. Answer
    Pavlina avatar
    6162 posts

    Posted 05 Nov 2010 Link to this post

    Hi Scott,

    The reason for this behavior is that your export button is ajaxified. Please examine the following link:
    Export from ajaxified grid

    and let me know if it help or you need additional assistance.

    Best wishes,
    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
  4. Scott
    Scott avatar
    15 posts
    Member since:
    Aug 2012

    Posted 05 Nov 2010 Link to this post

    This worked beautifully. Thank you!
Back to Top