Problems creating a widget

Posted by Community Admin on 05-Aug-2018 16:23

Problems creating a widget

All Replies

Posted by Community Admin on 01-Nov-2010 00:00

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.

Posted by Community Admin on 01-Nov-2010 00:00

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.

Posted by Community Admin on 01-Nov-2010 00:00

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.

This thread is closed