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

Forums / Sitefinity SDK / Problems creating a widget

Problems creating a widget

3 posts, 1 answered
  1. Matt
    Matt avatar
    48 posts
    Registered:
    25 Oct 2010
    01 Nov 2010
    Link to this post
    I'm trying to follow the instructions in How_to_create_a_widget_4.0_Beta_2.pdf.

    I hit a few problems, but Gabe Sumner's blog post here: http://www.sitefinity.com/blogs/gabesumner/posts/10-09-02/preparing_a_sitefinity_4_0_beta_project_for_development.aspx was very useful.

    However, I still have an outstanding problem.

    I have problems adding the code on Step 5 of Page 6.

    The following items are underlined in red by Visual Studio 2010.

    App
    ContentLifecycleStatus
    NewsLimit
    RadRotator1_ItemDataBound

    I'm sure I must be missing something, but I think I've followed the instructions properly.

    Has anyone any idea where I'm going wrong?

    Thanks.

    Matt.
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    01 Nov 2010
    Link to this post
    Hi Matt,

    Thank you for using our services.

    It seems that you are missing usings. Can you please try adding a reference to the Telerik.Sitefinity namespace. You can also open the sample code files from the SDK to see what namespaces we are referencing in the code files.

    Regards,
    Radoslav Georgiev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
    Answered
  3. Matt
    Matt avatar
    48 posts
    Registered:
    25 Oct 2010
    01 Nov 2010
    Link to this post
    Thanks Radoslav,

    That solved the problem -  I just added the following:

    using Telerik.Sitefinity;
    using Telerik.Sitefinity.GenericContent.Model;
    using Telerik.Sitefinity.Localization;
    using Telerik.Sitefinity.Modules.News.Web.UI;
    using Telerik.Sitefinity.Modules.Pages.Web.UI;
    using Telerik.Sitefinity.Pages.Model;
    using Telerik.Sitefinity.Web.DataResolving;
    using Telerik.Sitefinity.Web.UI;
    using Telerik.Sitefinity.Web.UI.ControlDesign;

    The other issues (such as NewsLimit) are handled by code further down the article.

    Thanks again.

    Matt.
3 posts, 1 answered