dear Sir,
I build a comment module using telerik grid, and as you can find below i am using usercontrol inside web page which also inside mastter page, and everything goes fine, but the problem is that i can show the waiting panel onley once if i move from page 1 to page 2 and when i elect again page 1 the loading panel didnt appear !!!!
please i need you advice in this.
I build a comment module using telerik grid, and as you can find below i am using usercontrol inside web page which also inside mastter page, and everything goes fine, but the problem is that i can show the waiting panel onley once if i move from page 1 to page 2 and when i elect again page 1 the loading panel didnt appear !!!!
please i need you advice in this.
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PostComments.ascx.cs" Inherits="AmazingWork.WebUserControls.PostComments" %> |
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> |
<div > |
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> |
<AjaxSettings> |
<telerik:AjaxSetting AjaxControlID="RadGrid_Comments"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="RadGrid_Comments" LoadingPanelID="LoadingPanel_GetComments"/> |
</UpdatedControls> |
</telerik:AjaxSetting> |
</AjaxSettings> |
</telerik:RadAjaxManager> |
<telerik:RadAjaxLoadingPanel runat="server" ID="LoadingPanel_GetComments"> |
<table cellpadding="0" cellspacing="0" width="100%" height="100%"> |
<tr><td style="width:100%;height:100%" valign="middle" align="center"> |
<table height="100%"><tr> |
<td align="center" valign="middle" style=" height:100%"> |
<asp:Image runat="server" ID="LoadingImage1" ImageUrl="~/Images/Loading/Loading.gif" AlternateText="Loading..." /> |
</td><td style="width:4px"></td><td align="center" style="color:Gray" valign="middle">loading</td> |
</tr></table> |
</td> |
</tr> |
</table> |
</telerik:RadAjaxLoadingPanel> |
<telerik:RadGrid ID="RadGrid_Comments" runat="server" Skin="WebBlue" Width="100%" |
GridLines="None" AllowPaging="True" |
PageSize="5" DataSourceID="SqlDataSource_GetMusicComments" ShowHeader="False" |
CellPadding="0" BorderStyle="None" |
> |
<AlternatingItemStyle BackColor="White" /> |
<ItemStyle BackColor="White" /> |
<PagerStyle Mode="NextPrevAndNumeric" /> |
<MasterTableView TableLayout="Fixed" AllowNaturalSort="False" |
AutoGenerateColumns="False" EnableTheming="True" > |
<ItemTemplate> |
<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr ><td> |
<asp:Image ID="Image1" Style="float: left;" Width="50px" Height="50px" ImageUrl="~/Images/Company/Company-Logo.png" |
runat="server" AlternateText="Stock Image" /> |
</td> |
<td style="width:100%;vertical-align:top"> |
<table border="0" cellpadding="0" cellspacing="0"><tr><td valign=top style="vertical-align:top"> |
<table border="0" cellpadding="0" cellspacing="0" ><tr><td style="font-weight: bold; font-family: Arial Black;">Abed Allateef qaisi</td><td>( <%# Eval( "CreationDate" )%> )</td></tr></table> |
</td></tr><tr><td> <br /> <%# Eval("CommentBody") %> </td></tr></table> |
</td> |
</tr></table> |
</ItemTemplate> |
<RowIndicatorColumn Visible="False"> |
<HeaderStyle Width="20px"></HeaderStyle> |
</RowIndicatorColumn> |
<ExpandCollapseColumn Visible="False" Resizable="False"> |
<HeaderStyle Width="20px"></HeaderStyle> |
</ExpandCollapseColumn> |
<Columns> |
<telerik:GridBoundColumn DataField="CommentBody" HeaderText="CommentBody" |
SortExpression="CommentBody" UniqueName="CommentBody"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="CreationDate" DataType="System.DateTime" |
HeaderText="CreationDate" SortExpression="CreationDate" |
UniqueName="CreationDate"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="CommentRank" DataType="System.Int32" |
HeaderText="CommentRank" SortExpression="CommentRank" UniqueName="CommentRank"> |
</telerik:GridBoundColumn> |
</Columns> |
<EditFormSettings> |
<PopUpSettings ScrollBars="None"></PopUpSettings> |
</EditFormSettings> |
</MasterTableView> |
<ActiveItemStyle BackColor="White" /> |
</telerik:RadGrid> |
<asp:SqlDataSource ID="SqlDataSource_GetMusicComments" runat="server"> |
</asp:SqlDataSource> |
</div> |
thanks for your help.