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

Using User Control with Telerik Grid in Telerik Grid column

1 Answer 46 Views
Grid
This is a migrated thread and some comments may be shown as answers.
DRG
Top achievements
Rank 1
DRG asked on 06 Sep 2013, 12:44 AM
A Telerik grid (Sorting, Paging enabled) with edit, delete & insert (popup) commands is used inside a user control. This user control is used in a webpage (Telerik Grid's Template Field column). When tried to use user control's grid events (edit, delete, insert, sorting, paging ...),  A Control is already associated with the element exception is thrown. 

<asp:UpdatePanel ID="updatePanel1" runat="server">
    <ContentTemplate>
        <ucl1:FormsControl ID="FormsControl1" runat="server" />
    </ContentTemplate>
</asp:UpdatePanel>

1 Answer, 1 is accepted

Sort by
0
DRG
Top achievements
Rank 1
answered on 06 Sep 2013, 04:24 PM
Binding the grid in Page_Init instead of Page_Load resolved the issue.

protected void Page_Init(object sender, EventArgs e)
{
     //Bind Grid
 }
Tags
Grid
Asked by
DRG
Top achievements
Rank 1
Answers by
DRG
Top achievements
Rank 1
Share this question
or