LoadingPanelID error showed once!!

10 posts, 1 answers
  1. Abed allateef Qaisi
    Abed allateef Qaisi avatar
    11 posts
    Member since:
    Oct 2009

    Posted 27 Feb 2010 Link to this post

    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.

     

     

     

  2. Abed allateef Qaisi
    Abed allateef Qaisi avatar
    11 posts
    Member since:
    Oct 2009

    Posted 01 Mar 2010 Link to this post

    guys,

    please any suggestions on how to solve this issue.

    thanks,
    Abed M. Qaisi
  3. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 02 Mar 2010 Link to this post

    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.
  4. Abed allateef Qaisi
    Abed allateef Qaisi avatar
    11 posts
    Member since:
    Oct 2009

    Posted 02 Mar 2010 Link to this post

    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
  5. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 03 Mar 2010 Link to this post

    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.
  6. Abed allateef Qaisi
    Abed allateef Qaisi avatar
    11 posts
    Member since:
    Oct 2009

    Posted 05 Mar 2010 Link to this post

    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
  7. Abed allateef Qaisi
    Abed allateef Qaisi avatar
    11 posts
    Member since:
    Oct 2009

    Posted 05 Mar 2010 Link to this post

    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
  8. Abed allateef Qaisi
    Abed allateef Qaisi avatar
    11 posts
    Member since:
    Oct 2009

    Posted 09 Mar 2010 Link to this post

    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
  9. Answer
    Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 09 Mar 2010 Link to this post

    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.
  10. Abed allateef Qaisi
    Abed allateef Qaisi avatar
    11 posts
    Member since:
    Oct 2009

    Posted 09 Mar 2010 Link to this post

    Thanks alot,

    Your amazingsupport is really highly appreciated,

    Thanks again,
    Abed M.Qaisi
Back to Top