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

Forums / Sitefinity SDK / Silverlight Widget Beta 2 Not Showing

Silverlight Widget Beta 2 Not Showing

6 posts, 0 answered
  1. Garry
    Garry avatar
    52 posts
    Registered:
    04 Nov 2010
    07 Oct 2010
    Link to this post
    Hey support guys,
    I am walking through the new Advanced Silverlight Widget sample in the Beta 2 SDK and I can't get it to show up in my toolbox to be able to add it to a page. What am I missing?

    Attached is a screen shot of my Settings in Sitefinity and below is the code.

    Widget Code
    using Telerik.Sitefinity.Web.UI;
    using System;
    using System.Collections.Generic;
      
    namespace ComicWidget
    {
        public class Comic : SimpleScriptView
        {
            public override  IEnumerable<System.Web.UI.ScriptDescriptor> GetScriptDescriptors()
            {
                throw new NotImplementedException();
            }
      
            public override IEnumerable<System.Web.UI.ScriptReference> GetScriptReferences()
            {
                throw new NotImplementedException();
            }
      
            protected override void InitializeControls(GenericContainer container)
            {
                  
            }
      
            protected override string LayoutTemplateName
            {
                get { return "ComicWidget.Resources.Views.ComicTemplate.ascx"; }
            }
        }
    }


  2. Hristo Borisov
    Hristo Borisov avatar
    190 posts
    Registered:
    18 Nov 2016
    12 Oct 2010
    Link to this post
    Hi Garry Clark,

    If you have successfully completed the step "Register the widget in Sitefinity" part of our "How to create an advanced Silverlight widget" then you have to make sure that the appropriate configuration is applied. Would you check with your ToolboxesConfig.config located at App_Data\Sitefinity\Configuration\ whether the following record exists?

    <add name="YourSection" title="YourSectionTitle">
        <tools>
            <add type="ComicWidget.Comic" name="Comic" title="Comic" />
        </tools>
    </add>

    You have to also make sure you have references to the class library in which you are building your widget.

    Thank you for contacting us. Looking forward to resolving your issue.

    Kind regards,
    Hristo Borisov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Garry
    Garry avatar
    52 posts
    Registered:
    04 Nov 2010
    12 Oct 2010
    Link to this post
    Hristo,
    I checked my config file and I do have this entry in it.

    <add name="Custom">
                        <tools>
                            <add type="ComicWidget.Comic" name="Comics" title="Comics" />
                        </tools>
                    </add>

    Any other suggestions?
  4. Hristo Borisov
    Hristo Borisov avatar
    190 posts
    Registered:
    18 Nov 2016
    12 Oct 2010
    Link to this post
    Hello Garry Clark,

    Then you have to just restart the application by modifying the web.config with a dummy change. Once you run the application the configuration will be applied and your widget must be part of the toolbox.

    Let me know asap if this doesn't resolve your problem.

    All the best,
    Hristo Borisov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Garry
    Garry avatar
    52 posts
    Registered:
    04 Nov 2010
    12 Oct 2010
    Link to this post
    Hristo,
    I have made a change to my web.config file and I even went back and copied your tool config and replaced mine, but as you can see from the screen shot I have no new tools. It now looks like this.

    <add name="Custom" title="Custom Tools">
              <tools>
                <add type="ComicWidget.Comic" name="Comic" title="Comic" />
              </tools>
            </add>

    Any other ideas?
  6. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    12 Oct 2010
    Link to this post
    Hello Garry Clark,

    It seems that the custom tools section is not created properly. Can you make sure that you have built your client library project and the dll exists in the bin folder of your website? Also can you make sure that adding some other control such as RadMenu (Telerik.Web.UI.RadMenu) to the toolbox will produce the same result.

    All the best,
    Radoslav Georgiev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
6 posts, 0 answered