Full Error: Control 'RadGrid1_ctl00_ctl02_ctl00_ctl04' of type 'Button' must be placed inside a form tag with runat=server
Details:
I'm placing a radgrid in a usercontrol, the usercontrol will be placed on an mvc page 6 times. The radcontrol works if it is alone on a page (not int a user control) using the following code:
<body>
<form runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<telerik:RadGrid ID="RadGrid1" AutoGenerateColumns="false" runat="server">
<MasterTableView>
<Columns>
<telerik:GridBoundColumn DataField="region" DataType="System.String" HeaderText="regionheader" />
<telerik:GridBoundColumn DataField="playCount" DataType="System.Int32" HeaderText="playcountheader" />
</Columns>
</MasterTableView>
<ClientSettings>
<DataBinding Location="/ASP/GridWS.asmx" SelectMethod="GetData" SelectCountMethod="GetCount" />
</ClientSettings>
</telerik:RadGrid>
</form>
</body>
However I get the error when I attempt to place the grid in the control on the page. If I move the <form> tag from the page to the control it will render without the error, but I need to have the form on the page as there are other controls that need to post, and basically because it seems like bad practice.