I am using a RadGrid that should be refreshed every 2 seconds.I setup a asp:timer and RadAjaxManager on the page and everything is working fine. What I would like to acheive is to avoid the RadAjaxLoadingPanel to be shown douring refresh; in other words I would like to get the new rows in the Grid without showing to the user that the page is loading again.
If I am seeting the RadAjaxLoadingPanel visible = false, the grid doesn't refresh and the same if RadAjaxLoadingPanel is not set within RadAjaxManager.
Do you have any suggestion?
Thanks, Giuseppe
3 Answers, 1 is accepted
I tried to replicate the issue which you described, but to no avail.
Attached to this message, you will find the code which I used for testing.
Please, take a look at it and let me know if there are any differences at your end, which I may be leaving out.
Regards,
Mira
the Telerik team
Now without touching anything I am getting this on any radcontrol
---------------------------
---------------------------
Error creating template groups. Reason: System.InvalidCastException: Impossibile eseguire il cast di [A]Telerik.Web.UI.RadGrid a [B]Telerik.Web.UI.RadGrid. Il tipo A ha origine da 'Telerik.Web.UI, Version=2011.1.315.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4' nel contesto 'LoadNeither' nella posizione 'C:\Users\LAP3\AppData\Local\Microsoft\VisualStudio\10.0\ProjectAssemblies\v0x8yve501\Telerik.Web.UI.dll'. Il tipo B ha origine da 'Telerik.Web.UI, Version=2011.1.315.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4' nel contesto 'LoadNeither' nella posizione 'C:\Users\LAP3\AppData\Local\Microsoft\VisualStudio\10.0\ProjectAssemblies\mwkevpwv01\telerik.web.ui.dll'.
in Telerik.Web.Design.RadGridDesigner.get_TemplateGroups()
---------------------------
OK
---------------------------
Here is the code:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="chat.aspx.vb" Inherits="ChatApp.chat" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> <Scripts> <%--Needed for JavaScript IntelliSense in VS2010--%> <%--For VS2008 replace RadScriptManager with ScriptManager--%> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" /> </Scripts> </telerik:RadScriptManager> <telerik:RadFormDecorator ID="RadFormDecorator1" Runat="server" DecoratedControls="All" Skin="Sitefinity" /> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="Timer1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="Panel1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <br /> <!--start--> <telerik:RadToolTipManager ID="RadToolTipManager1" runat="server"> </telerik:RadToolTipManager> <telerik:RadToolTip ID="RadToolTip1" runat="server"> </telerik:RadToolTip> <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default" Height="16px" Width="16px"> </telerik:RadAjaxLoadingPanel> <asp:Panel ID="Panel1" runat="server"> <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AutoGenerateColumns="False" CellSpacing="0" DataSourceID="SqlDataSource1" GridLines="None" ShowHeader="False" Width="300px" Culture="(Default)"> <MasterTableView DataKeyNames="id" DataSourceID="SqlDataSource1"> <CommandItemSettings ExportToPdfText="Export to PDF" /> <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"> <HeaderStyle Width="20px" /> </RowIndicatorColumn> <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"> <HeaderStyle Width="20px" /> </ExpandCollapseColumn> <Columns> <telerik:GridBoundColumn DataField="id" DataType="System.Int32" FilterControlAltText="Filter id column" HeaderText="id" ReadOnly="True" SortExpression="id" UniqueName="id"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="From_User" DataType="System.Int32" FilterControlAltText="Filter From_User column" HeaderText="From_User" SortExpression="From_User" UniqueName="From_User"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="To_User" DataType="System.Int32" FilterControlAltText="Filter To_User column" HeaderText="To_User" SortExpression="To_User" UniqueName="To_User"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Message_Original" FilterControlAltText="Filter Message_Original column" HeaderText="Message_Original" SortExpression="Message_Original" UniqueName="Message_Original"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Message_Translated" FilterControlAltText="Filter Message_Translated column" HeaderText="Message_Translated" SortExpression="Message_Translated" UniqueName="Message_Translated"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Translated_To" FilterControlAltText="Filter Translated_To column" HeaderText="Translated_To" SortExpression="Translated_To" UniqueName="Translated_To"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Date_Time" DataType="System.DateTime" FilterControlAltText="Filter Date_Time column" HeaderText="Date_Time" SortExpression="Date_Time" UniqueName="Date_Time"> </telerik:GridBoundColumn> <telerik:GridCheckBoxColumn DataField="ShownOnRecipent" DataType="System.Boolean" FilterControlAltText="Filter ShownOnRecipent column" HeaderText="ShownOnRecipent" SortExpression="ShownOnRecipent" UniqueName="ShownOnRecipent"> </telerik:GridCheckBoxColumn> </Columns> <EditFormSettings> <EditColumn FilterControlAltText="Filter EditCommandColumn column"> </EditColumn> </EditFormSettings> </MasterTableView> <PagerStyle Mode="Slider" /> <FilterMenu EnableImageSprites="False"> </FilterMenu> <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"> </HeaderContextMenu> </telerik:RadGrid> <asp:Timer id="Timer1" runat="server" Interval="5000"></asp:Timer> </asp:Panel> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:DBConnection %>" SelectCommand="SELECT * FROM [chat] ORDER BY [id] DESC"> </asp:SqlDataSource> <!--end--> </div> </form> </body> </html> I suggest that you examine the Error creating template groups - for all controls forum thread elaborating on the same issue.
Please let me know whether it helps.
All the best,
Mira
the Telerik team