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

Trying to put a RadGrid into an UpdatePanel...

1 Answer 301 Views
Grid
This is a migrated thread and some comments may be shown as answers.
pmwhelan
Top achievements
Rank 1
pmwhelan asked on 06 Aug 2010, 10:48 AM
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

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 06 Aug 2010, 01:31 PM
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.
Tags
Grid
Asked by
pmwhelan
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or