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

Forums / Bugs & Issues / Issue in developing Generic Content Based Module

Issue in developing Generic Content Based Module

5 posts, 0 answered
  1. Nimit
    Nimit avatar
    90 posts
    Registered:
    27 Mar 2009
    04 Jun 2009
    Link to this post

    I downloaded the "Products Module: Enabled Categories" from the sitefinity from http://www.sitefinity.com/help/developer-manual/products-module-simple-module-categorized.html, and added it to my sitefinity website. It works fine, but when I search the in module using the Search option in the product module in the Sitefinity side of the website it is giving me following error:-->

     

     

    Server Error in '/' Application.

    The ViewMode "ContentItemsList`1" is not defined for this control.

    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.ArgumentException: The ViewMode "ContentItemsList`1" is not defined for this control.

    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:

    [ArgumentException: The ViewMode "ContentItemsList`1" is not defined for this control.]
       Telerik.Cms.Web.UI.ViewModeControl`1.get_CurrentView() +279
       Telerik.Cms.Web.UI.ViewModeControl`1.LoadCurrentView(Control owner) +78
       Telerik.Cms.Web.UI.ViewModeControl`1.InitializeControls(Control viewContainer) +122
       Telerik.Cms.Web.UI.ViewModeControl`1.CreateChildControls() +201
       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.Control.PreRenderRecursiveInternal() +171
       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.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
    

     

    This search option is above the list of products and it is same as other generic based modules.

    I tried to resolved it but could can anybody please help me ASAP,

    Thank you very much,

    Nimit Verma.
  2. Pepi
    Pepi avatar
    981 posts
    Registered:
    28 Oct 2016
    05 Jun 2009
    Link to this post
    Hi Nimit,

    The module you have downloaded is implemented for old Sitefinity version. In case your web site is running on Sitefinity 3.6 or later, you need to transfer the sample module to use the new backend architecture. An updated version of the module is available for download in the following blog post: Sample Generic Content based module: Products module. Also, here is a reference to Sitefinity 3.6 new backend architecture documentation.

    Let  us know if you need any further assistance.

    Regards,
    Pepi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Nimit
    Nimit avatar
    90 posts
    Registered:
    27 Mar 2009
    05 Jun 2009
    Link to this post
    Hi pepi,
    Thank you for the reply.
    I add the new sample module to a freshly new sitefinity project.
    but when I go in modules and then in "Products" module which was created from the sample code and then when I enter text in the textbox next to "Search Item by" and click Search button it give me the same Error which I showed in my previous error. I tried to debug but can't
    Please reply soon ASAP.

    Thank you for your time,
    Nimit Verma.

  4. Pepi
    Pepi avatar
    981 posts
    Registered:
    28 Oct 2016
    08 Jun 2009
    Link to this post
    Hello Nimit,

    You need to override GetFilterListCommand method in ProductsItemListView class as follows:

    \Telerik.Samples.Products\WebControls\Admin\Products\ProductsItemListView.cs
            /// <summary> 
            /// Gets the list command. 
            /// </summary> 
            /// <param name="filter"></param> 
            /// <returns></returns> 
            protected override string GetFilterListCommand(string filter) 
            { 
                return this.CreateHostViewCommand<ProductsItemListView>(filter); 
            } 

    Let us know if this helps.

    Sincerely yours,
    Pepi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. Nimit
    Nimit avatar
    90 posts
    Registered:
    27 Mar 2009
    10 Jun 2009
    Link to this post
    Hi Pepi ,

    Thank you very much, its working now, I really appreciate your help.

    Yours Sincerely,
    Nimit Verma.
Register for webinar
5 posts, 0 answered