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: 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.
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
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;