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

Page Refresh Issue with RadGrid

3 Answers 226 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 02 Nov 2010, 09:55 PM
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">

 

 

<AjaxSettings>

 

 

<telerik:AjaxSetting AjaxControlID="RadGrid1">

 

 

<UpdatedControls>

 

 

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

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

<telerik:AjaxSetting AjaxControlID="btnRunReport">

 

 

<UpdatedControls>

 

 

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

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

</AjaxSettings>

 

 

</telerik:RadAjaxManager>

 

 

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

 

 

</telerik:RadAjaxLoadingPanel>

 

 

<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>

 

 

</ExportSettings>

 

 

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

 

 

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

 

 

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

 

 

<RowIndicatorColumn Visible="True">

 

 

</RowIndicatorColumn>

 

 

<Columns>

 

 

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

 

 

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

 

 

Display="true">

 

 

</telerik:GridBoundColumn>

 

 

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

 

 

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

 

 

AutoPostBackOnFilter="true">

 

 

</telerik:GridBoundColumn>

 

 

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

 

 

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

 

 

AutoPostBackOnFilter="true">

 

 

</telerik:GridBoundColumn>

 

 

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

 

 

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

 

 

</telerik:GridBoundColumn>

 

 

</Columns>

 

 

</MasterTableView>

 

 

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

 

 

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

 

 

<Animation AllowColumnReorderAnimation="True" />

 

 

</ClientSettings>

 

 

<FilterMenu Skin="WebBlue">

 

 

</FilterMenu>

 

 

</telerik:RadGrid>

 



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. 

3 Answers, 1 is accepted

Sort by
0
Scott
Top achievements
Rank 1
answered on 02 Nov 2010, 10:12 PM
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.

Thanks,

Scott
0
Accepted
Pavlina
Telerik team
answered on 05 Nov 2010, 05:35 PM
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,
Pavlina
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
Scott
Top achievements
Rank 1
answered on 05 Nov 2010, 07:13 PM
This worked beautifully. Thank you!
Tags
Filter
Asked by
Scott
Top achievements
Rank 1
Answers by
Scott
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or