Hi everyone,
Frist of all i just have to say how in love with RadGrid I am! :D Unfortuantely I don't think it loves me back or RadAjaxPanel is jellous and is causing me issues...
The problem I have is that when the RadAjaxPanel executes it's first postback the following features of Radgrid stop working until the entire page is postedback/refreshed.
Frist of all i just have to say how in love with RadGrid I am! :D Unfortuantely I don't think it loves me back or RadAjaxPanel is jellous and is causing me issues...
The problem I have is that when the RadAjaxPanel executes it's first postback the following features of Radgrid stop working until the entire page is postedback/refreshed.
- RadGrid Row Selection
- RadGrid Filter dropdown menu doesn't appear and generates Javascript errors
- RadGrid Grouping ceases to work,
Can anyone assist me?
Thanks,
Xavier.
3 Answers, 1 is accepted
0

Shinu
Top achievements
Rank 2
answered on 26 Jun 2009, 05:34 AM
Hi Xavier,
Try using RadAjaxManager instead of RadAjaxPanel to ajaxify the Grid and see whether the Grid is working properly. You can also go through the following demo links where all the above mentioned Grid functionalities are working properly with RadAjaxManger.
Basic Filtering
Client-side Row Selection
Outlook-style Grouping
Shinu
Try using RadAjaxManager instead of RadAjaxPanel to ajaxify the Grid and see whether the Grid is working properly. You can also go through the following demo links where all the above mentioned Grid functionalities are working properly with RadAjaxManger.
Basic Filtering
Client-side Row Selection
Outlook-style Grouping
Shinu
0

Xavier
Top achievements
Rank 1
answered on 26 Jun 2009, 08:12 AM
Thank you Shinu,
When using the Ajax manager and not the ajax panel I get javascript errors along the lines of:
"Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled. Details:"
The cause is the fact that there are a couple Responce.Writes() in our page structure that do various things... by taking a couple out i can see that the 'process' is making its way further down the 'coding chain'..
What can I do to get around this? Unfortuantely I cannot see a way around the current Response.Writes().
Thank you,
Xavier.
When using the Ajax manager and not the ajax panel I get javascript errors along the lines of:
"Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled. Details:"
The cause is the fact that there are a couple Responce.Writes() in our page structure that do various things... by taking a couple out i can see that the 'process' is making its way further down the 'coding chain'..
What can I do to get around this? Unfortuantely I cannot see a way around the current Response.Writes().
Thank you,
Xavier.
0

Xavier
Top achievements
Rank 1
answered on 26 Jun 2009, 08:54 AM
what i did was create a new page without response.writes but using all the same code before. Still the same issue just no javascript popup, but all the broken features i mentioned earlier are still not working.
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CtrlViewQuotations.ascx.cs" Inherits="Controls_Quotation_CtrlViewQuotations" %> |
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1"> |
<AjaxSettings> |
<telerik:AjaxSetting AjaxControlID="RadGrid1"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1"/> |
</UpdatedControls> |
</telerik:AjaxSetting> |
</AjaxSettings> |
</telerik:RadAjaxManager> |
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" ><img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" /></telerik:RadAjaxLoadingPanel> |
<div id="pageContainer"> |
<div class="bigModule"> |
<div class="bigModuleBottom"> |
<div class="title">View Quotations - Accelerated Quotation System v1.0</div> |
</div> |
</div> |
<div id="formArea"> |
<div id="resultsDiv"> |
<% Response.Write(resultMessages); %> |
</div> |
<asp:Panel ID="PnlStep1" runat="server" Visible="True"> |
<fieldset style="width:740px; margin-bottom:10px;"> |
<legend>Search Parameters</legend> |
<div style="padding:10px;"> |
<table style="width:700px;"> |
<tr> |
<td style="width: 100px"><strong>Show:</strong></td> |
<td colspan="2"><asp:RadioButtonList ID="rblShowUserQuotesOnly" runat="server" RepeatDirection="Horizontal"> |
<asp:ListItem Selected="True" Value="1">Show Just Mine</asp:ListItem> |
<asp:ListItem Value="0">Show Everyone's</asp:ListItem> |
</asp:RadioButtonList></td> |
</tr> |
<tr> |
<td style="height: 64px"><strong>Current Status:</strong></td> |
<td style="height: 64px"><telerik:RadComboBox ID="rcbStatus" runat="server"> |
<Items> |
<telerik:RadComboBoxItem runat="server" Selected="True" Text="All" Value="A" /> |
<telerik:RadComboBoxItem runat="server" Text="Quoting" Value="Q" /> |
<telerik:RadComboBoxItem runat="server" Text="Quoted" Value="QD" /> |
<telerik:RadComboBoxItem runat="server" Text="Syspro" Value="S" /> |
<telerik:RadComboBoxItem runat="server" Text="Closed" Value="C" /> |
</Items> |
</telerik:RadComboBox> |
</td> |
<td style="height: 64px; text-align: right"><asp:Button ID="Button1" runat="server" Text="Show Quotations" OnClick="Button1_Click" CssClass="dialogBtn" /></td> |
</tr> |
<tr> |
<td colspan="3" style="height: 40px"><strong><em><span style="color: #ccaaaa">*NB. This filter will not work for Quotes not |
started by the Indent Operations System.</span></em></strong></td> |
</tr> |
</table> |
<br /> |
<br /> |
</div> |
</fieldset> |
<br /> |
<telerik:RadMenu ID="RadMenu1" runat="server" Skin="Vista" Width="100%"> |
<Items> |
<telerik:RadMenuItem runat="server" Text="Refresh Quotes"> </telerik:RadMenuItem> |
<telerik:RadMenuItem runat="server" Text="Export Quote List"> |
<Items> |
<telerik:RadMenuItem runat="server" Text="Export To Excel"> |
<Items> |
<telerik:RadMenuItem runat="server" Text="... And Download"> </telerik:RadMenuItem> |
<telerik:RadMenuItem runat="server" Text="... And Email as Attachment"> </telerik:RadMenuItem> |
</Items> |
</telerik:RadMenuItem> |
<telerik:RadMenuItem runat="server" Text="Export To PDF"> |
<Items> |
<telerik:RadMenuItem runat="server" Text="... And Download"> </telerik:RadMenuItem> |
<telerik:RadMenuItem runat="server" Text="... And Email as Attachment"> </telerik:RadMenuItem> |
</Items> |
</telerik:RadMenuItem> |
</Items> |
</telerik:RadMenuItem> |
</Items> |
</telerik:RadMenu> |
<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowSorting="True" |
GridLines="None" Skin="Office2007" AllowPaging="True" OnNeedDataSource="RadGrid1_NeedDataSource" AutoGenerateColumns="False" OnItemCommand="RadGrid1_ItemCommand" ShowGroupPanel="True"> |
<MasterTableView CellSpacing="-1"> |
<Columns> |
<telerik:GridButtonColumn HeaderText="Maintain Quote" Text="Maintain Quote" UniqueName="LinkColumn"> </telerik:GridButtonColumn> |
<telerik:GridBoundColumn DataField="QMQuote" HeaderText="Quote Number" UniqueName="QuoteNumber"> </telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="QMCust" HeaderText="Customer Number" UniqueName="QMCust"> </telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="QMQteDesc" HeaderText="Quote Description" UniqueName="QMQteDesc"> </telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="QMCSO" HeaderText="Indent CSO" UniqueName="QMCSO"> </telerik:GridBoundColumn> |
</Columns> |
</MasterTableView> |
<ClientSettings AllowDragToGroup="True"> |
<Selecting AllowRowSelect="True" /> |
</ClientSettings> |
</telerik:RadGrid> |
</asp:Panel> |
</div> |
</div> |