Trying to put a RadGrid into an UpdatePanel...

2 posts, 0 answers
  1. pmwhelan
    pmwhelan avatar
    104 posts
    Member since:
    Apr 2007

    Posted 06 Aug 2010 Link to this post

    Hi

    I have a RadGrid which works fine.
    I have now put a textbox and button above the RadGrid and when the button is clicked then a row should be added to the RadGrid.
    But it doesn't do it without a postback.

    I try to put the RadGrid into an UpdatePanel like this ...
    (all I did was add the UpdatePanel control)

    <

     

    asp:UpdatePanel ID="upInterimComments" runat="server">

     

     

     

    <radG:RadGrid

     

    ......

    </

     

    radG:RadGrid>

     

     

     

    </asp:UpdatePanel>

     


    But I get a load of errors ...
    Error 1 Type 'System.Web.UI.UpdatePanel' does not have a public property named 'RadGrid'. 
    Error 2 Type 'System.Web.UI.UpdatePanel' does not have a public property named 'GroupPanel'. 
    etc

    Any ideas?

    Thanks
    Paul
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 06 Aug 2010 Link to this post

    Hello Paul,

    You missed the ContentTemplate tag of UpdatePanel. Please add the controls inside ContentTemplate.

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
         <ContentTemplate>
             - my controls goes here -
         </ContentTemplate>
    </asp:UpdatePanel>

    Here you can find more about UpdatePanel:
    UpdatePanel tutorial ASP.NET AJAX
    Introduction to the UpdatePanel Control


    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top