I'm working on integrating a series of user controls that work just fine when loaded into a stand alone aspx page, but when I try to load them into a ControlPanel.asxc in Sitefinity Admin it seems like none of the events are wired up.
Here's some code snipits:
RadGrid with the following:
|<telerik:RadGrid ID="RadGrid1" runat="server" |
| AutoGenerateColumns="False" |
| AllowAutomaticDeletes="True" |
| AllowAutomaticInserts="True" |
| AllowAutomaticUpdates="True" |
| AllowFilteringByColumn="True" |
| AllowPaging="True" |
| AllowSorting="True" |
| AutoGenerateDeleteColumn="True" |
| AutoGenerateEditColumn="True" |
| GridLines="None" |
| CssClass="listItems" |
| DataSourceID="LinqDataSource1" |
| > |
and then the following LinqDataSource:
|<asp:LinqDataSource ID="LinqDataSource1" runat="server" |
| ContextTypeName="MyAppDataContext" EnableDelete="True" |
| EnableInsert="True" EnableUpdate="True" TableName="Departments"> |
This will render the grid fine, but clicking on the Edit/Delete commands in the grid dosen't do anything, it's like the events aren't wired up. They can be wired up manually of course but since I have over 20 existing user controls that all work as is, I'm looking for a more elegant way to integrate them without having to manually wire up each one. Is this possible?
Also, something that may be relevant, the user controls are loaded into ControlPanel.ascx by creating a Control and adding it to a place holder on the page when a link in the CommandPanel.ascx is clicked.
Any help is greatly appreciated.