Problems creating a widget - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

Problems creating a widget

  • Problems creating a widget
  • 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: 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.


    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?


  • 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.

    Radoslav Georgiev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  • 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.