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

Forums / Job Announcements / How to make an Image widget with navigation url

How to make an Image widget with navigation url

1 posts, 0 answered
  1. Shafiqul
    Shafiqul avatar
    4 posts
    Registered:
    06 May 2013
    06 May 2013
    Link to this post
    I already know how to create new widget. But, I can't figure out how to make another widget with the same functionality of image selector widget in addition with another filed called navigation url. This navigation url will be used to redirect to on click of the image. Attached file contains the view that I am after.
    I have tried by inheriting "ImageSettingsDesigner"  but getting following error :

    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
    Stack Trace:
    [NullReferenceException: Object reference not set to an instance of an object.]
    Telerik.Sitefinity.Modules.Libraries.Web.UI.Designers.ImageSettingsDesigner.OnInit(EventArgs e) +67".
    System.Web.UI.Control.InitRecursive(Control namingContainer) +185
    System.Web.UI.Control.InitRecursive(Control namingContainer) +420
    System.Web.UI.Control.InitRecursive(Control namingContainer) +420
    System.Web.UI.Control.InitRecursive(Control namingContainer) +420
    System.Web.UI.Control.InitRecursive(Control namingContainer) +420
    System.Web.UI.Control.AddedControl(Control control, Int32 index) +188
    Telerik.Sitefinity.Web.UI.DialogBase.CreateChildControls() +121
    System.Web.UI.Control.EnsureChildControls() +188
    System.Web.UI.WebControls.CompositeControl.get_Controls() +23
    Telerik.Sitefinity.Web.UI.PropertyEditor.OnInit(EventArgs e) +60
    System.Web.UI.Control.InitRecursive(Control namingContainer) +185
    System.Web.UI.Control.AddedControl(Control control, Int32 index) +188
    Telerik.Sitefinity.Web.DialogRouteHandler.InitializeContent(Page handler, RequestContext requestContext) +413
    System.Web.UI.Control.LoadRecursive() +70
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3177

    Moreover, I am not sure what method to override and how. Any sample code will be much appreciated.

    Shafiq
1 posts, 0 answered