+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Wrapping control in GC Module

Wrapping control in GC Module

10 posts, 0 answered
  1. Tarun
    Tarun avatar
    81 posts
    Registered:
    14 Jan 2009
    03 Aug 2010
    Link to this post
    Hi,

    I am wrapping a custom control in GC module. I got the below error.Even the same things I am doing with another custom control and that working fine.I am not getting why am i getting error in one control and other is working fine.
     
    Invalid resource name (Telerik.Modules.Business.Resources.ControlTemplates.Frontend.MyBusinessHeader.ascx) for assembly (Telerik.Modules.Business, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null) or empty template.
    Line 216:            {
    Line 217:                if (this.template == null)
    Line 218:                    this.template = ControlUtils.GetTemplate(this.LayoutTemplatePath, this.LayoutTemplateName, this.GetType());
    Line 219:                return this.template;
    Line 220:            }
     
    Source File: D:\Business\Business\WebControls\MyBusinessHeader.cs    Line: 218
     
    Stack Trace:
     
     
    [ArgumentException: Invalid resource name (Telerik.Modules.Business.Resources.ControlTemplates.Frontend.MyBusinessHeader.ascx) for assembly (Telerik.Modules.Business, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null) or empty template.]
       Telerik.Framework.Web.ControlUtils.GetTemplate(String virtualPath, String resourceFileName, Type assemblyInfo, Type localizationAssemblyInfo) +852
       Telerik.Framework.Web.ControlUtils.GetTemplate(String virtualPath, String resourceFileName, Type assemblyInfo) +42
       Telerik.Modules.Business.WebControls.MyBusinessHeader.get_LayoutTemplate() in D:\Business\Business\WebControls\MyBusinessHeader.cs:218
       Telerik.Modules.Business.WebControls.MyBusinessHeader.CreateChildControls() in D:\Business\Business\WebControls\MyBusinessHeader.cs:175
       System.Web.UI.Control.EnsureChildControls() +87
       System.Web.UI.Control.PreRenderRecursiveInternal() +44
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

    Below is my code


    using System;
    using Telerik.Cms.Engine.WebControls.Admin;
    using Telerik.Modules.Business.WebControls.Admin.Business;
    using Telerik.Modules.Business.WebControls.Admin;
    using Telerik.Modules.Business;
    using System.Web.UI;
    using Telerik.Cms.Web;
    using Telerik.Security.Permissions;
    using Telerik.Cms.Engine;
    using Telerik.Cms;
    using System.Web;
    using Telerik.Web;
    using Telerik.Cms.Engine.WebControls;
    using System.Web.UI.WebControls;
    using System.Collections.Generic;
    using System.Collections;
    using Telerik.Cms.Web.UI;
    using Telerik.Framework.Web;
    using System.ComponentModel;
     
     
    namespace Telerik.Modules.Business.WebControls
    {
        /// <summary>
        /// View for editing Business
        /// </summary>
        public class MyBusinessHeader : ContentView
        {
            private const string TemplateName =
            "Telerik.Modules.Business.Resources.ControlTemplates.Frontend.MyBusinessHeader.ascx";
            private string layoutTemplatePath;
     
     
            /// <summary>
            /// If this property is empty the control will try to detect if a provider is specified in the request or it will use the default provider.
            /// </summary>
            /// <value></value>
            public override string ProviderName
            {
                get
                {
                    object obj = ViewState["ProviderName"];
                    if (obj != null)
                        return (string)obj;
                    return BusinessManager.DefaultContentProvider;
                }
     
            }
     
            #region View layout and template
     
            /// <summary>
            /// Gets or sets the path to a custom layout template for the control.
            /// </summary>
            /// <value></value>
            [WebSysTemplate(MyBusinessHeader.TemplateName, "MyBusinessHeader_Template_Desc", "/Business", false, "2010-07-30")]
            public string LayoutTemplatePath
            {
                get
                {
                    return this.layoutTemplatePath;
                }
                set
                {
                    this.layoutTemplatePath = value;
                }
     
            }
     
     
            /// <summary>
            /// Gets the name of the embedded layout template. This property must be overridden to provide the path (key) to an embedded resource file.
            /// </summary>
            /// <value></value>
            protected string LayoutTemplateName
            {
                get
                {
                    return MyBusinessHeader.TemplateName;
                }
            }
     
            public ITemplate LayoutTemplate
            {
     
                get
                {
                    if (this.template == null)
                        this.template = ControlUtils.GetTemplate(this.LayoutTemplatePath, this.LayoutTemplateName, this.GetType());
                    return this.template;
                }
                set
                {
                    this.template = value;
                }
     
            }
     
            private ITemplate template;
     
            #endregion
     
     
            /// <summary>
            /// Get BusinessCard metadata
            /// </summary>
            /// <returns></returns>
            public IList GetData()
            {
                IList list = null;
                try
                {
                    string username = HttpContext.Current.User.Identity.Name;
     
                    if (username != "")
                    {
     
                        BusinessManager manager = new BusinessManager("Business");
     
                        List<Telerik.Cms.Engine.IMetaSearchInfo> filter = new List<Telerik.Cms.Engine.IMetaSearchInfo>();
     
                        filter.Add(new Telerik.Cms.Engine.MetaSearchInfo(Telerik.Cms.Engine.MetaValueTypes.ShortText, "User", username));
     
                        list = manager.Content.GetContent(filter.ToArray());
                        foreach (Telerik.Cms.Engine.IContent contentItem in list)
                        {
     
                            ViewState["ContentId"] = contentItem.ID;
                        }
                        container1.DataRepeater.DataSource = list;
                        container1.DataBind();
     
     
                    }
                }
                catch (Exception ex)
                {
                    throw ex;
                }
                return list;
     
            }
     
          
            private PublicControlContainer container1;
     
            /// <summary>
            /// Overriden. Called by ASP.NET engine to create child controls for control.
            /// </summary>
            protected override void CreateChildControls()
            {
                container1 = new PublicControlContainer(this);
     
                LayoutTemplate.InstantiateIn(container1);
     
                Controls.Add(container1);
     
                IList allData = GetData();
                
            }
     
     
            //  private PublicControlContainer container;
            private GenericContainer container;
     
     
            protected virtual GenericContainer Container
            {
                get
                {
                    if (this.container == null)
                    {
                        this.container = new GenericContainer();
                        this.LayoutTemplate.InstantiateIn(this.container);
     
                    }
                    return this.container;
                }
            }
     
     
            /// <summary>
            /// Class which defines a default template for this control.
            /// </summary>
            private class DefaultTemplate : ITemplate
            {
                public void InstantiateIn(Control container)
                {
                    // TODO : implement default template
                }
            }
     
            /// <summary>
            /// Container class with helper methods for working with controls inside of
            /// a template
            /// </summary>
            private class PublicControlContainer : GenericContainer<MyBusinessHeader>
            {
                public PublicControlContainer(MyBusinessHeader owner)
                    : base(owner)
                {
     
                }
     
                /// <summary>
                /// Property which returns the reference to the DataRepeater Repeater
                /// inside of SamplePublicControl template
                /// </summary>
                public Repeater DataRepeater
                {
                    get
                    {
                        if (dataRepeater == null)
                            dataRepeater = FindRequiredControl<Repeater>("dataRepeater");
                        return dataRepeater;
                    }
                }
     
     
     
                private Repeater dataRepeater;
     
            }
     
     
        }
    }

    this is ascx control 

    <%@ Control Language="C#" AutoEventWireup="true" %>
    <asp:Repeater ID="dataRepeater" runat="server">
        <HeaderTemplate>
         
        </HeaderTemplate>
        <ItemTemplate>
         
            <div id="menuDiv" style="background: black; color: White;">
                <div>
                    <h3>
                        <a id="lnkName" href='<%# Eval("MyBusinessUrl") %>' style="color: White;" runat="server">'<%# Eval("Name")%>'</a>
                        <asp:Label ID="ltrlHead" ForeColor="White" runat="server" Text=" : Business Administration Area"></asp:Label>
                    </h3>
                </div>
                <div class="menu menu horizontal aqua">
                    <ul>
                        <li style="background: #636563; font-weight: bolder; font-size: larger;" class="highlight">
                            <span class="menu_r"><a href="/MyBusiness.aspx"><span class="menu_ar">Overview</span></a></span></li>
                        <li><span class="menu_r"><a href="/MyBusiness/MyBusinessCard.aspx""><span class="menu_ar">
                            General Info</span></a></span></li>
                        <li><span class="menu_r"><a href="/MyBusiness/MyBusinessBillingInfo.aspx"><span class="menu_ar">
                            Billing Info</span></a></span></li>
                        <li><span class="menu_r"><a href="/MyBusiness/MyBusinessHrsAvail.aspx"><span class="menu_ar">
                            Hours And Availability</span></a></span></li>
                        <li><span class="menu_r"><a href="/MyBusiness/MyBusinessContent.aspx"><span class="menu_ar">
                            My Message</span></a></span></li>
                        <li><span class="menu_r"><a href="/MyBusiness/MyBusinessBanner.aspx"><span class="menu_ar">
                            Banner</span></a></span></li>
                        <li><span class="menu_r"><a href="/MyBusiness/MyBusinessKeywords.aspx"><span class="menu_ar">
                            Keywords</span></a></span></li>
                        <li><span class="menu_r"><a id="lnkviewPage" runat="server"><span class="menu_ar">View
                            My Page</span></a></span></li>
                    </ul>
                    <br class="clearit" />
                </div>
            </div>
            <h4>
                <asp:Label ID="lblPlan" Text='<%# Eval("AdvertisingPlan")%>' runat="server"></asp:Label></h4>
         
        </ItemTemplate>
    </asp:Repeater>

  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    05 Aug 2010
    Link to this post
    Hello Tarun,

    Thank you for contacting Telerik Support.

    Could you please check the template file's properties? Check if the Build Action property is set to Embedded Resource. If it is not, please set it so and rebuild your custom assembly.

    Best wishes,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Tarun
    Tarun avatar
    81 posts
    Registered:
    14 Jan 2009
    06 Aug 2010
    Link to this post
    HI Thanks for your response.

    I got that working but now I am getting one another problem in the other control. I am wrapping a control inside GC module with the rad grid. The control seems work fine but when I clicked on edit button I got below error.
    Server Error in '/' Application.
     
    Unable to cast object of type 'SimpleTmplate' to type 'System.Web.UI.IBindableTemplate'.
     
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
     
    Exception Details: System.InvalidCastException: Unable to cast object of type 'SimpleTmplate' to type 'System.Web.UI.IBindableTemplate'.
     
    Source Error:
     
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
     
    Stack Trace:
     
     
    [InvalidCastException: Unable to cast object of type 'SimpleTmplate' to type 'System.Web.UI.IBindableTemplate'.]
       Telerik.Web.UI.GridTemplateColumn.FillValues(IDictionary newValues, GridEditableItem editableItem) +180
       Telerik.Web.UI.GridEditableItem.ExtractValues(IDictionary newValues) +158
       Telerik.Web.UI.GridTableView.ExtractValuesFromItem(IDictionary newValues, GridEditableItem editedItem) +90
       Telerik.Web.UI.GridItemBuilder.CreateItems(GridGroupingContext group) +719
       Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) +1048
       Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +625
       System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +72
       System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +150
       System.Web.UI.WebControls.DataBoundControl.PerformSelect() +273
       Telerik.Web.UI.GridTableView.PerformSelect() +9
       Telerik.Web.UI.GridTableView.DataBind() +363
       Telerik.Web.UI.GridTableView.Rebind() +101
       Telerik.Web.UI.GridCommandEventArgs.ExecuteCommand(Object source) +192
       Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) +185
       System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +50
       Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +142
       System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +50
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +32
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3103

    Below is ascx code :
    <%@ Control Language="C#" AutoEventWireup="true" %>
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Cms.Web.UI" Assembly="Telerik.Cms.Web.UI" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Cms.Engine.WebControls" Assembly="Telerik.Cms.Engine" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Cms.Engine.WebControls.Admin" Assembly="Telerik.Cms.Engine" %>
    <asp:Repeater ID="dataRepeater" runat="server">
        <ItemTemplate>
            <div id="menuDiv" style="background: black; color: White;">
                <div>
                    <h3>
                        <a id="lnkName" href='<%# Eval("MyBusinessUrl") %>' style="color: White;" runat="server">
                            <%# Eval("Name")%></a>
                        <asp:Label ID="ltrlHead" ForeColor="White" runat="server" Text=" : Business Administration Area"></asp:Label>
                    </h3>
                </div>
                <div class="menu menu horizontal aqua">
                    <ul>
                        <li><span class="menu_r"><a href="/MyBusiness.aspx"><span class="menu_ar">Overview</span></a></span></li>
                        <li><span class="menu_r"><a href="/MyBusiness/MyBusinessCard.aspx""><span class="menu_ar">
                            General Info</span></a></span></li>
                        <li><span class="menu_r"><a href="/MyBusiness/MyBusinessBillingInfo.aspx"><span class="menu_ar">
                            Billing Info</span></a></span></li>
                        <li><span class="menu_r"><a href="/MyBusiness/MyBusinessHrsAvail.aspx"><span class="menu_ar">
                            Hours And Availability</span></a></span></li>
                        <li><span class="menu_r"><a href="/MyBusiness/MyBusinessContent.aspx"><span class="menu_ar">
                            My Message</span></a></span></li>
                        <li class="highlight"><span class="menu_r"><a href="/MyBusiness/MyBusinessBanner.aspx">
                            <span class="menu_ar">Banner</span></a></span></li>
                        <li style="background: #636563; font-weight: bolder; font-size: larger;" class="highlight">
                            <span class="menu_r"><a href="/MyBusiness/MyBusinessKeywords.aspx"><span class="menu_ar">
                                Keywords</span></a></span></li>
                        <li><span class="menu_r"><a id="lnkviewPage" href='<%# Eval("MyBusinessUrl") %>'
                            runat="server"><span class="menu_ar">View My Page</span></a></span></li>
                    </ul>
                    <br class="clearit" />
                </div>
            </div>
            <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td colspan="2">
                          
                    </td>
                </tr>
                <tr>
                    <td valign="top">
                        <b>Instructions : </b>
                    </td>
                    <td>
                        <div style="word-wrap: break-word; width: 450px;">
                            On this page you can manage entries of your searchable keyword list.
                        </div>
                        <br />
                    </td>
                </tr>
            </table>
        </ItemTemplate>
    </asp:Repeater>
    <div>
        <table cellpadding="0" width="500px" cellspacing="0" border="0">
            <tr>
                <td colspan="3">
                    <sf:MessageControl runat="server" ID="message1">
                        <ItemTemplate>
                <asp:Label runat="server" ID="messageText"></asp:Label>
            </ItemTemplate>
                    </sf:MessageControl>
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <b>Add a keword</b>
                </td>
            </tr>
            <tr>
                <td colspan="3">
                      
                </td>
            </tr>
            <tr style="background: #D8D8D8;">
                <td>
                    Keyword : 
                </td>
                <td>
                    <asp:TextBox ID="txtKey" Width="200" ValidationGroup="add" runat="server"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator Width="100" ID="rfvKey" runat="server" ValidationGroup="add"
                        ErrorMessage="*" ControlToValidate="txtKey"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:Button ID="btnAdd" Text="Add" runat="server" ValidationGroup="add" />
                </td>
            </tr>
        </table>
        <p />
        <asp:Label ID="lblMykeyword" runat="server" Font-Bold="true" Text="My Keywords :"></asp:Label>
    </div>
    <telerik:RadGrid ID="radGrid" runat="server" CellPadding="0" CellSpacing="0" BorderWidth="0"
        Width="500" AllowPaging="True" GridLines="None" AllowAutomaticUpdates="True"
        AllowAutomaticDeletes="True" AutoGenerateColumns="False" PageSize="10">
        <MasterTableView AutoGenerateColumns="False" AllowAutomaticDeletes="true" AllowAutomaticUpdates="true"
            EditMode="InPlace" DataKeyNames="ID">
            <Columns>
                <telerik:GridEditCommandColumn ButtonType="ImageButton" InsertText="Edit" UniqueName="EditCommandColumn">
                    <ItemStyle CssClass="MyImageButton" />
                </telerik:GridEditCommandColumn>
                <telerik:GridTemplateColumn DataField="ID" UniqueName="ID" Visible="false">
                    <ItemTemplate>
                        <asp:Label ID="lblID" runat="server" Text='<%# Eval("ID") %>'></asp:Label>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn DataField="TagName" UniqueName="TagName" SortExpression="TagName"
                    HeaderText="Keyword">
                    <ItemTemplate>
                        <asp:Label ID="lblTag" runat="server" Text='<%# Eval("TagName") %>'></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox Visible="false" ID="editTag" runat="server" Text='<%# Eval("TagName") %>'></asp:TextBox>
                    </EditItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridButtonColumn ConfirmText="Delete this product?" ConfirmDialogType="RadWindow"
                    ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                    UniqueName="DeleteColumn">
                    <ItemStyle HorizontalAlign="Center" />
                </telerik:GridButtonColumn>
            </Columns>
            <AlternatingItemStyle BackColor="#D8D8D8" />
        </MasterTableView>
    </telerik:RadGrid>
     
     
    <%-- <MasterTableView  AutoGenerateColumns="False" EditMode="InPlace" DataKeyNames="ID">
                <Columns>
                <telerik:GridEditCommandColumn  >
                <ItemStyle BackColor />
                </telerik:GridEditCommandColumn>
                    <telerik:GridTemplateColumn UniqueName="Edit" HeaderText="Edit">
                        <ItemTemplate>
                           <asp:ImageButton ID="btnEdit" runat="server" ImageUrl="~/Resources/Images/Edit.gif" CommandName="Edit">
                            </asp:ImageButton>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                 
                   <telerik:GridTemplateColumn DataField="ID" UniqueName="ID" Visible="false">
                        <ItemTemplate>
                            <asp:Label ID="lblID" runat="server" Text='<%# Eval("ID") %>'></asp:Label>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn DataField="TagName" UniqueName="TagName" SortExpression="TagName"
                        HeaderText="Keyword">
                        <ItemTemplate>
                            <asp:Label ID="lblTag" runat="server" Text='<%# Eval("TagName") %>'></asp:Label>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:TextBox ID="editTag" runat="server" Text='<%# Eval("TagName") %>'></asp:TextBox>
                            <asp:ImageButton ID="btnUpdate" CommandName="Update" runat="server" ImageUrl="~/Resources/Images/Update.gif" /><asp:ImageButton
                                ID="btnCancel" CommandName="Cancel" runat="server" ImageUrl="~/Resources/Images/Cancel.gif" />
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                   <telerik:GridTemplateColumn HeaderText="Delete">
                        <ItemTemplate>
                            <asp:ImageButton ID="btnDeleted" runat="server" ImageUrl="~/Resources/Images/Delete.gif"
                                CommandName="Delete"></asp:ImageButton>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
              </Columns>
                <AlternatingItemStyle BackColor="#D8D8D8" />
                <CommandItemTemplate>
                </CommandItemTemplate>
               <%-- <RowIndicatorColumn>
                    <HeaderStyle Width="20px"></HeaderStyle>
                </RowIndicatorColumn>
                <ExpandCollapseColumn>
                    <HeaderStyle Width="20px"></HeaderStyle>
                </ExpandCollapseColumn>
            </MasterTableView>--%>


    server code:

    using System;
    using Telerik.Cms.Engine.WebControls.Admin;
    using Telerik.Modules.Business.WebControls.Admin.Business;
    using Telerik.Modules.Business.WebControls.Admin;
    using Telerik.Modules.Business;
    using System.Web.UI;
    using Telerik.Cms.Web;
    using Telerik.Security.Permissions;
    using Telerik.Cms.Engine;
    using Telerik.Cms;
    using System.Web;
    using Telerik.Web;
    using Telerik.Cms.Engine.WebControls;
    using System.Web.UI.WebControls;
    using System.Collections.Generic;
    using System.Collections;
    using Telerik.Cms.Web.UI;
    using Telerik.Framework.Web;
    using System.ComponentModel;
    using Telerik.Web.UI;
     
     
     
    namespace Telerik.Modules.Business.WebControls
    {
        /// <summary>
        /// View for editing Business
        /// </summary>
        public class MyBusinessKeywords : ContentView
        {
            private const string TemplateName =
            "Telerik.Modules.Business.Resources.ControlTemplates.Frontend.MyBusinessKeywords.ascx";
            private string layoutTemplatePath;
     
     
            /// <summary>
            /// If this property is empty the control will try to detect if a provider is specified in the request or it will use the default provider.
            /// </summary>
            /// <value></value>
            public override string ProviderName
            {
                get
                {
                    object obj = ViewState["ProviderName"];
                    if (obj != null)
                        return (string)obj;
                    return BusinessManager.DefaultContentProvider;
                }
     
            }
     
            #region View layout and template
     
            /// <summary>
            /// Gets or sets the path to a custom layout template for the control.
            /// </summary>
            /// <value></value>
            [WebSysTemplate(MyBusinessKeywords.TemplateName, "MyBusinessKeywords_Template_Desc", "/Business", false, "2009-04-10")]
            public string LayoutTemplatePath
            {
                get
                {
                    return this.layoutTemplatePath;
                }
                set
                {
                    this.layoutTemplatePath = value;
                }
            }
     
     
            /// <summary>
            /// Gets the name of the embedded layout template. This property must be overridden to provide the path (key) to an embedded resource file.
            /// </summary>
            /// <value></value>
            protected string LayoutTemplateName
            {
                get
                {
                    return MyBusinessKeywords.TemplateName;
                }
            }
     
            public ITemplate LayoutTemplate
            {
     
                get
                {
                    if (this.template == null)
                        this.template = ControlUtils.GetTemplate(this.LayoutTemplatePath, this.LayoutTemplateName, this.GetType());
                    return this.template;
                }
                set
                {
                    this.template = value;
                }
     
            }
     
            private ITemplate template;
     
            #endregion
     
     
     
            /// <summary>
            ///
            /// </summary>
            /// <param name="sender"></param>
            /// <param name="e"></param>
            protected void btnAdd_Click(object sender, EventArgs e)
            {
                this.CreateTag();
            }
     
            /// <summary>
            /// Get BusinessCard metadata
            /// </summary>
            /// <returns></returns>
            public IList GetData()
            {
                IList list = null;
                try
                {
                    string username = HttpContext.Current.User.Identity.Name;
     
                    if (username != "")
                    {
     
                        BusinessManager manager = new BusinessManager("Business");
     
                        List<Telerik.Cms.Engine.IMetaSearchInfo> filter = new List<Telerik.Cms.Engine.IMetaSearchInfo>();
     
                        filter.Add(new Telerik.Cms.Engine.MetaSearchInfo(Telerik.Cms.Engine.MetaValueTypes.ShortText, "User", username));
     
                        list = manager.Content.GetContent(filter.ToArray());
                        foreach (Telerik.Cms.Engine.IContent contentItem in list)
                        {
     
                            ViewState["ContentId"] = contentItem.ID;
                        }
                        container1.DataRepeater.DataSource = list;
                       // container1.DataBind();
     
     
                    }
                }
                catch (Exception ex)
                {
                    throw ex;
                }
                return list;
     
            }
     
            ///// <summary>
            ///// Set BusinessCard metadata
            ///// </summary>
            ///// <param name="item"></param>
            //private void SetMetaData(RepeaterItem item)
            //{
            //    // string username = HttpContext.Current.User.Identity.Name;
     
     
            //    try
            //    {
            //        BusinessManager manager = new BusinessManager("Business");
     
            //        //List<Telerik.Cms.Engine.IMetaSearchInfo> filter = new List<Telerik.Cms.Engine.IMetaSearchInfo>();
     
            //        //filter.Add(new Telerik.Cms.Engine.MetaSearchInfo(Telerik.Cms.Engine.MetaValueTypes.ShortText, "User", username));
     
            //        StagedContent contentItem = manager.Content.GetStagedContent(new Guid(ViewState["ContentId"].ToString())) as StagedContent;
     
            //        TextBox Availability = item.FindControl("txtAvailability") as TextBox;
            //        contentItem.SetMetaData("Availability", Availability.Text);
     
            //        manager.Content.SaveContent(contentItem, Telerik.Cms.Engine.ContentStatus.Published);
            //        Label msg = item.FindControl("lblMsg") as Label;
            //        msg.Text = "Updated Successfully!";
            //        GetData();
            //    }
            //    catch (Exception ex)
            //    {
            //        throw ex;
            //    }
            //}
     
     
            protected void RadGrid_ItemCommand(object source, GridCommandEventArgs e)
            {
                if (e.CommandName == "Edit")
                {
                     
                    GridItem item = e.Item;
                    GetTagData();
                    ///container1.DataBind();
                }
     
                else if (e.CommandName == "Delete")
                {
                    GridItem item = e.Item;
                    Label id = (Label)item.FindControl("lblID");
                    DeleteTag(id.Text);
     
                }
     
                else if (e.CommandName == RadGrid.UpdateCommandName)
                {
     
                    GridEditableItem item = (GridEditableItem)e.Item;
                    TextBox txtBoxEdit = (TextBox)item.FindControl("editTag");
                    string lblEdit = item.GetDataKeyValue("ID").ToString();
                    UpdateTag(txtBoxEdit.Text, lblEdit);
                    e.Item.Edit = false;
                }
     
                else if (e.CommandName == "Cancel")
                {
                    GetTagData();
                    // e.Canceled = true;
                    // //radgrid.MasterTableView.EditItemTemplate.ClearEditItems();
                    // //radgrid.MasterTableView.IsItemInserted = true;
                    //// radgrid.Rebind();
                }
     
     
            }
     
            protected void RadGrid_PageIndexChanged(object source, GridPageChangedEventArgs e)
            {
                container1.RadGrid.CurrentPageIndex = e.NewPageIndex;
                this.GetTagData();
            }
            protected void RadGrid_PageSizeChanged(object source, GridPageSizeChangedEventArgs e)
            {
                //radgrid.PageSize = e.NewPageSize;
                this.GetTagData();
            }
     
     
            #region Tags
     
            /// <summary>
            /// Get Tag List
            /// </summary>
            public IList GetTagData()
            {
     
                string username = HttpContext.Current.User.Identity.Name;
                 
                IList tagList= null;
     
                BusinessManager manager = new BusinessManager("Business");
     
                List<Telerik.Cms.Engine.IMetaSearchInfo> filter = new List<Telerik.Cms.Engine.IMetaSearchInfo>();
     
                filter.Add(new Telerik.Cms.Engine.MetaSearchInfo(Telerik.Cms.Engine.MetaValueTypes.ShortText, "User", username));
     
                IList list = manager.Content.GetContent(filter.ToArray());
     
                foreach (Telerik.Cms.Engine.IContent contentItem in list)
                {
                    //lnkName.HRef = contentItem.GetMetaData("MyBusinessUrl").ToString();
                    //lnkviewPage.HRef = contentItem.GetMetaData("MyBusinessUrl").ToString();
                    //lnkName.InnerHtml = contentItem.GetMetaData("Name").ToString();
     
                    tagList = manager.Content.GetTags(contentItem.ID);// contentItem.GetMetaData("Message").ToString();
                    container1.RadGrid.DataSource = tagList;
                    container1.RadGrid.DataBind();
     
                    ViewState["ContentId"] = contentItem.ID;
                    container1.DataBind();
                }
                return tagList;
     
            }
     
            /// <summary>
            /// Create Tag
            /// </summary>
            public void CreateTag()
            {
     
                try
                {
                    string username = HttpContext.Current.User.Identity.Name;
     
                    BusinessManager manager = new BusinessManager("Business");
     
                    List<Telerik.Cms.Engine.IMetaSearchInfo> filter = new List<Telerik.Cms.Engine.IMetaSearchInfo>();
     
                    filter.Add(new Telerik.Cms.Engine.MetaSearchInfo(Telerik.Cms.Engine.MetaValueTypes.ShortText, "User", username));
     
                    IList list = manager.Content.GetContent(filter.ToArray());
     
                    Telerik.Modules.Business.WebControls.Admin.BusinessTagsView tag = new Telerik.Modules.Business.WebControls.Admin.BusinessTagsView();
     
                    List<string> tags = new List<string>();
                    tags.Add(container1.TxtBoxKey.Text);
     
                    foreach (Telerik.Cms.Engine.IContent contentItem in list)
                    {
     
                        IList tagList = manager.Content.GetTags(contentItem.ID);
     
                       // ITag iTag = manager.Content.CreateTag("7");
                        //IList li = iTag.TaggedContent;
                        foreach (ITag t in tagList)
                        {
                            tags.Add(t.TagName);
                        }
                        manager.Content.SaveTags(contentItem.ID, tags);
                        tagList = manager.Content.GetTags(contentItem.ID);
                        container1.RadGrid.DataSource = tagList;
                         
                        container1.Message.Message = "Keyword has been added succeffully !";
     
                        ViewState["ContentId"] = contentItem.ID;
                        container1.TxtBoxKey.Text = "";
                        container1.DataBind();
                    }
                }
     
                catch (Exception ex)
                {
                    throw ex;
                }
     
            }
     
            /// <summary>
            /// Update Tag
            /// </summary>
            /// <param name="newValue"></param>
            /// <param name="oldValue"></param>
     
            public void UpdateTag(string newValue, string oldValue)
            {
                string username = HttpContext.Current.User.Identity.Name;
     
                BusinessManager manager = new BusinessManager("Business");
     
                List<Telerik.Cms.Engine.IMetaSearchInfo> filter = new List<Telerik.Cms.Engine.IMetaSearchInfo>();
     
                filter.Add(new Telerik.Cms.Engine.MetaSearchInfo(Telerik.Cms.Engine.MetaValueTypes.ShortText, "User", username));
     
                IList list = manager.Content.GetContent(filter.ToArray());
     
                Telerik.Modules.Business.WebControls.Admin.BusinessTagsView tag = new Telerik.Modules.Business.WebControls.Admin.BusinessTagsView();
     
                List<string> tags = new List<string>();
                tags.Add(newValue);
     
                foreach (Telerik.Cms.Engine.IContent contentItem in list)
                {
     
                    IList tagList = manager.Content.GetTags(contentItem.ID);
     
                    ITag iTag = manager.Content.CreateTag(container1.TxtBoxKey.Text);
     
                    foreach (ITag t in tagList)
                    {
     
                        tags.Add(t.TagName);
                        if (t.ID == new Guid(oldValue))
                        {
                            tags.Remove(t.TagName);
                        }
                    }
                    manager.Content.SaveTags(contentItem.ID, tags);
                    tagList = manager.Content.GetTags(contentItem.ID);
                    container1.RadGrid.DataSource = tagList;
                    container1.DataBind();
                    container1.Message.Message = "Keyword has been updated succeffully !";
                    container1.TxtBoxKey.Text = "";
                }
            }
     
            /// <summary>
            /// Delete Tag
            /// </summary>
            /// <param name="value"></param>
            public void DeleteTag(string value)
            {
                string username = HttpContext.Current.User.Identity.Name;
     
                BusinessManager manager = new BusinessManager("Business");
     
                List<Telerik.Cms.Engine.IMetaSearchInfo> filter = new List<Telerik.Cms.Engine.IMetaSearchInfo>();
     
                filter.Add(new Telerik.Cms.Engine.MetaSearchInfo(Telerik.Cms.Engine.MetaValueTypes.ShortText, "User", username));
     
                IList list = manager.Content.GetContent(filter.ToArray());
     
                Telerik.Modules.Business.WebControls.Admin.BusinessTagsView tag = new Telerik.Modules.Business.WebControls.Admin.BusinessTagsView();
     
                List<string> tags = new List<string>();
     
                foreach (Telerik.Cms.Engine.IContent contentItem in list)
                {
     
                    IList tagList = manager.Content.GetTags(contentItem.ID);
     
                    ITag iTag = manager.Content.CreateTag(container1.TxtBoxKey.Text);
     
                    foreach (ITag t in tagList)
                    {
     
                        tags.Add(t.TagName);
                        if (t.ID == new Guid(value))
                        {
                            tags.Remove(t.TagName);
                        }
                    }
                    manager.Content.SaveTags(contentItem.ID, tags);
                    tagList = manager.Content.GetTags(contentItem.ID);
                    container1.RadGrid.DataSource = tagList;
                    container1.DataBind();
                    container1.Message.Message = "Keyword has been deleted succeffully !";
                    container1.TxtBoxKey.Text = "";
     
                }
            }
     
             
            #endregion
     
            private PublicControlContainer container1;
     
            /// <summary>
            /// Overriden. Called by ASP.NET engine to create child controls for control.
            /// </summary>
            protected override void CreateChildControls()
            {
                container1 = new PublicControlContainer(this);
     
                LayoutTemplate.InstantiateIn(container1);
     
               // container1.DataRepeater.ItemCommand += new RepeaterCommandEventHandler(Action);
                container1.BtnAdd.Click +=new EventHandler(btnAdd_Click);
                container1.RadGrid.ItemCommand += new GridCommandEventHandler(RadGrid_ItemCommand);
                container1.RadGrid.PageIndexChanged += new GridPageChangedEventHandler(RadGrid_PageIndexChanged);
                container1.RadGrid.PageSizeChanged += new GridPageSizeChangedEventHandler(RadGrid_PageSizeChanged);
                Controls.Add(container1);
     
                GetData();
                GetTagData();
     
            }
     
            private GenericContainer container;
            protected virtual GenericContainer Container
            {
                get
                {
                    if (this.container == null)
                    {
                        this.container = new GenericContainer();
                        this.LayoutTemplate.InstantiateIn(this.container);
     
                    }
                    return this.container;
                }
            }
     
     
            /// <summary>
            /// Class which defines a default template for this control.
            /// </summary>
            private class DefaultTemplate : ITemplate
            {
                public void InstantiateIn(Control container)
                {
                    // TODO : implement default template
                }
            }
     
            /// <summary>
            /// Container class with helper methods for working with controls inside of
            /// a template
            /// </summary>
            private class PublicControlContainer : GenericContainer<MyBusinessKeywords>
            {
                public PublicControlContainer(MyBusinessKeywords owner)
                    : base(owner)
                {
     
                }
     
                /// <summary>
                /// Property which returns the reference to the DataRepeater Repeater
                /// inside of SamplePublicControl template
                /// </summary>
                public Repeater DataRepeater
                {
                    get
                    {
                        if (dataRepeater == null)
                            dataRepeater = FindRequiredControl<Repeater>("dataRepeater");
                        return dataRepeater;
                    }
                }
     
                public RadGrid RadGrid
                {
                    get
                    {
                        if (radGrid == null)
                            radGrid = FindRequiredControl<RadGrid>("radGrid");
                        return radGrid;
                    }
                }
     
                public TextBox TxtBoxKey
                {
                    get
                    {
                        if (txtKey == null)
                            txtKey = FindRequiredControl<TextBox>("txtKey");
                        return txtKey;
                    }
                }
     
                public Button BtnAdd
                {
                    get
                    {
                        if (btnAdd == null)
                            btnAdd = FindRequiredControl<Button>("btnAdd");
                        return btnAdd;
                    }
                }
                public MessageControl Message
                {
                    get
                    {
                        if (Message1 == null)
                            Message1 = FindRequiredControl<MessageControl>("Message1");
                        return Message1;
                    }
                }
     
                private Repeater dataRepeater;
                private Telerik.Web.UI.RadGrid radGrid;
                private Telerik.Cms.Web.UI.MessageControl Message1;
                private TextBox txtKey;
                private Button btnAdd;
     
            }
     
     
        }
    }


    I tried to made all change but couldn't get this working .The problems comes when I add EditItemTemplate in the rad grid. I also tried the same grid on the aspx page and wonder that worked fine.

    Thanks! 
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    09 Aug 2010
    Link to this post
    Hello Tarun,

    Thank you for getting back to us.

    The problem you are experiencing is because our template parser for embedded templates does not support IBindableTemplate. In order to make this work your control would have to use external template - one which is not built into the assembly. You should set the LayoutTemplatePath property to a template in the website root.

    Regards,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Tarun
    Tarun avatar
    81 posts
    Registered:
    14 Jan 2009
    09 Aug 2010
    Link to this post
    Hi Radoslav Georgiev ,

    As I have described that I am trying to wrap the control in the module. I can't put this template outside module.Please give me some other suggestion.

    Thanks,
    Tarun
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    10 Aug 2010
    Link to this post
    Hi Tarun,

    The exception you are getting is a current limitation of the Sitefinity's moduless. The issue  occurs by the time when the bindable template of the inserted item is replaced by the regular template of the template column, for instance  after insert. Please excuse us for the inconvenience. Please consider not using GridTemplateColumn in RadGrid in a Sitefinity module.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  7. Kyle
    Kyle avatar
    7 posts
    Registered:
    14 Apr 2011
    16 May 2011
    Link to this post
    Hi,

    Is this related to sitefinity 4 also?
    I'm getting this error (

    Server Error in '/' Application.

    Unable to cast object of type 'SimpleTmplate' to type 'System.Web.UI.IBindableTemplate'.)
    When using an edititemtemplate inside a gridtemplatecolumn in a sitefinity 4.1 module.

    Has this been resolved?
    If not what do you use for editing a grid instead of a gridtemplatecolumn?

    thanks

  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    17 May 2011
    Link to this post
    Hi Kyle,

    Can you show the code that you use in 4.0. I have a basic sample locally, running on 4.1 but I haven't faced issues with GridTemplateColumn so far, so your input will help us to determine whether the issue still persists.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  9. Kyle
    Kyle avatar
    7 posts
    Registered:
    14 Apr 2011
    03 Aug 2011
    Link to this post
    Hey Ivan,

    I ended up using an asp gridview, however in another module I decided to give it another crack and here I am with the same error. Here is my code, not all methods implemented yet..

    FuturesSymbols.ascx
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
        <telerik:RadGrid ID="uxRadGrid" runat="server"
            AllowPaging="true" AllowSorting="true"
             AllowFilteringByColumn="true">
            <MasterTableView CommandItemDisplay="Top" AutoGenerateColumns="false" DataKeyNames="SymbolFutureId"
                InsertItemPageIndexAction="ShowItemOnCurrentPage">
                <Columns>
                    <telerik:GridEditCommandColumn ButtonType="ImageButton" />
                    <telerik:GridButtonColumn ConfirmText="Delete this product?" ConfirmDialogType="RadWindow"
                        ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" ConfirmDialogHeight="100px"
                        ConfirmDialogWidth="220px" />
                    <telerik:GridTemplateColumn DataField="SymbolFutureId" HeaderText="SymbolFutureId" UniqueName="SymbolFutureId"
                        Visible="false">
                        <InsertItemTemplate>
                            <telerik:RadTextBox ID="RadTextBox1" runat="server" Text='<%# Bind("SymbolFutureId") %>'
                                Width="150px" />
                        </InsertItemTemplate>
                        <EditItemTemplate>
                            <telerik:RadTextBox ID="RadTextBox1" runat="server" Text='<%# Eval("SymbolFutureId") %>'
                                ReadOnly="true" Width="150px" />
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn DataField="Title" HeaderText="Title" UniqueName="Title" />
                    <telerik:GridBoundColumn DataField="InstrumentCode" HeaderText="InstrumentCode" UniqueName="InstrumentCode" />
                    <telerik:GridBoundColumn DataField="Delay" HeaderText="Delay" UniqueName="Delay" />
                    <telerik:GridBoundColumn DataField="FriendlyMaturityMonth" HeaderText="FriendlyMaturityMonth" UniqueName="FriendlyMaturityMonth" />
                    <telerik:GridBoundColumn DataField="RolloverRule.Name" HeaderText="RolloverRule" UniqueName="RolloverRule" />
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
    </telerik:RadAjaxPanel>
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" />
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />

    FuturesSymbols.cs
    public class FuturesSymbols : SimpleView
    {
        protected override void InitializeControls(GenericContainer container)
        {
            FuturesGrid.NeedDataSource += new GridNeedDataSourceEventHandler(FuturesGrid_NeedDataSource);
            FuturesGrid.UpdateCommand += new GridCommandEventHandler(FuturesGrid_UpdateCommand);
            FuturesGrid.InsertCommand += new GridCommandEventHandler(FuturesGrid_InsertCommand);
            FuturesGrid.DeleteCommand += new GridCommandEventHandler(FuturesGrid_DeleteCommand);
        }
     
        void FuturesGrid_DeleteCommand(object sender, GridCommandEventArgs e)
        {
            throw new NotImplementedException();
        }
     
        void FuturesGrid_InsertCommand(object sender, GridCommandEventArgs e)
        {
            throw new NotImplementedException();
        }
     
        void FuturesGrid_UpdateCommand(object sender, GridCommandEventArgs e)
        {
            throw new NotImplementedException();
        }
     
        void FuturesGrid_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
        {
            FuturesGrid.DataSource = SymbolFutureHelper.GetAll();
        }
     
        private string layoutTemplateName = "OMF.Symbols.Resources.Views.FuturesSymbols.ascx";
        protected override string LayoutTemplateName
        {
            get { return layoutTemplateName; }
        }
     
        protected virtual RadGrid FuturesGrid { get { return this.Container.GetControl<RadGrid>("uxRadGrid", true); } }
    }


    It initially loads fine, when clicking edit I get the following error:

    Server Error in '/' Application.

    Unable to cast object of type 'SimpleTmplate' to type 'System.Web.UI.IBindableTemplate'.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: System.InvalidCastException: Unable to cast object of type 'SimpleTmplate' to type 'System.Web.UI.IBindableTemplate'.

    Source Error: 

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace: 

    [InvalidCastException: Unable to cast object of type 'SimpleTmplate' to type 'System.Web.UI.IBindableTemplate'.]
       Telerik.Web.UI.GridTemplateColumn.FillValues(IDictionary newValues, GridEditableItem editableItem) +222
       Telerik.Web.UI.GridEditableItem.ExtractValues(IDictionary newValues) +86
       Telerik.Web.UI.GridEditFormItem.ExtractValues(IDictionary newValues) +65
       Telerik.Web.UI.GridTableView.ExtractValuesFromItem(IDictionary newValues, GridEditableItem editedItem) +61
       Telerik.Web.UI.GridItemBuilder.CreateItems(GridGroupingContext group) +859
       Telerik.Web.UI.GridTableView.CreateItems(IEnumerator enumerator, GridColumn[] columns, ControlCollection controls) +128
       Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) +919
       Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +660
       System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +66
       System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +128
       System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +33
       System.Web.UI.WebControls.DataBoundControl.PerformSelect() +143
       Telerik.Web.UI.GridTableView.PerformSelect() +16
       System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
       Telerik.Web.UI.GridTableView.DataBind() +259
       Telerik.Web.UI.GridTableView.Rebind() +49
       Telerik.Web.UI.GridCommandEventArgs.ExecuteCommand(Object source) +170
       Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) +137
       System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
       Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +87
       System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
       System.Web.UI.WebControls.ImageButton.OnCommand(CommandEventArgs e) +125
       System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +177
       System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563
  10. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    04 Aug 2011
    Link to this post
    Hi Kyle,

    Do you use Sitefinity SP3 ? Since 4.1 release we use VirtualPathProvider to set the template, which you don't use in your code.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
10 posts, 0 answered