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

LoadingPanelID error showed once!!

9 Answers 75 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Abed allateef Qaisi
Top achievements
Rank 1
Abed allateef Qaisi asked on 27 Feb 2010, 08:04 PM
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.

<%@ 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.

 

 

 

9 Answers, 1 is accepted

Sort by
0
Abed allateef Qaisi
Top achievements
Rank 1
answered on 01 Mar 2010, 05:18 PM
guys,

please any suggestions on how to solve this issue.

thanks,
Abed M. Qaisi
0
Tsvetoslav
Telerik team
answered on 02 Mar 2010, 07:56 AM
Hello Abed,

There is absolutely nothing wrong with your aspx mark-up. Attached is also a small sample where I tried to reproduce the problem but to no success.

I hope it helps.

Greetings,
Tsvetoslav
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
Abed allateef Qaisi
Top achievements
Rank 1
answered on 02 Mar 2010, 08:32 AM
Thanks a lot for your reply,

please follow this link below where you can notice the problem :

http://amazingwork.com/Tracks/Law%20Kul%20Ashiq_62/27/S/Law%20Kul%20Ashiq.aspx

my web site hierarchy like this : Master Page -> aspx page -> container user control -> comment user control

also as I have noticed that the table inside the grid is contain blue lines and i dont know how to remove them ....

please advice .

thanks alot .
Abed M. Qaisi
0
Tsvetoslav
Telerik team
answered on 03 Mar 2010, 08:47 AM
Hello Abed,

Please, stript down a runnable test project with the described problem and attach it to a formal support ticket. We shall inspect it and get back to you with more information. 

Regards,
Tsvetoslav
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
Abed allateef Qaisi
Top achievements
Rank 1
answered on 05 Mar 2010, 09:12 AM
Dear Support,

myControl = (

Control)Page.LoadControl("/WebUserControls/PostComments.ascx");

 

 

BlockContent.Controls.Add(myControl);

 


I figure out the problem, the problem occur if I load the telerik data grid which is inside a user control (PostComments.ascx) dynamically using codebehind into container user control.

if i register the PostComments.ascx in the aspx page <uc2:PostCommentsASCX ID="postComment" runat="server" /> not using code behind the problem solved !!!!!!

please advice becuase i have the Block fram Content user control which i use it as a container for each user control in my site.

thanks abed m. qaisi
0
Abed allateef Qaisi
Top achievements
Rank 1
answered on 05 Mar 2010, 09:36 AM
Dear Sir,

please follow this link below where you can find the error.

http://amazingwork.com/loadingpanel.rar

I hope this will help to solve this issue ( thanks alot )

Abed M. Qaisi
0
Abed allateef Qaisi
Top achievements
Rank 1
answered on 09 Mar 2010, 09:14 AM
Dear Sir,

any updates on previous issue becuase really i have alot of modules i need to build based on the above structure.

thanks,
Abed M.Qaisi
0
Accepted
Tsvetoslav
Telerik team
answered on 09 Mar 2010, 12:08 PM
Hello Abed,

Try moving the grid user control loading code from the Page_Load event into the Page_Init one:

protected void Page_Init(object sender, EventArgs e)
{
    HtmlTableCell BlockContent = (HtmlTableCell)GridControl1.FindControl("blockContent");
    Control myControl = (Control)Page.LoadControl("WebUserControl.ascx");
      
    BlockContent.Controls.Add(myControl);
}


Regards,
Tsvetoslav
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
Abed allateef Qaisi
Top achievements
Rank 1
answered on 09 Mar 2010, 07:32 PM
Thanks alot,

Your amazingsupport is really highly appreciated,

Thanks again,
Abed M.Qaisi
Tags
Ajax
Asked by
Abed allateef Qaisi
Top achievements
Rank 1
Answers by
Abed allateef Qaisi
Top achievements
Rank 1
Tsvetoslav
Telerik team
Share this question
or