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

Forums / Developing with Sitefinity / Registration of a custom dialog

Registration of a custom dialog

3 posts, 1 answered
  1. Anton Mernov
    Anton Mernov avatar
    110 posts
    Registered:
    03 Dec 2008
    28 Jul 2011
    Link to this post
    Hi there!

    Is there a way to register custom dialogs during installation process of a custom module? I know there is a way to do this through global.asax:

    protected void Application_Start(object sender, EventArgs e)
    {
        Telerik.Sitefinity.Abstractions.Bootstrapper.Initialized += new EventHandler<Telerik.Sitefinity.Data.ExecutedEventArgs>(Bootstrapper_Initialized);
    }
      
    protected void Bootstrapper_Initialized(object sender, Telerik.Sitefinity.Data.ExecutedEventArgs args)
    {
        Telerik.Sitefinity.Web.UI.Dialogs.RegisterDialog<CustomDialogClassName>();

    It would be great to have an ability to do the same in the Install method of a custom module. It will allow users to avoid to do this operation themselves.

    Thanks,
    Anton
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    29 Jul 2011
    Link to this post
    Hi Anton Mernov,

    You should register the dialog with this line of code:
    Telerik.Sitefinity.Web.UI.Dialogs.RegisterDialog<CustomDialogClassName>();

    in the initialization event of your module. If you take a look at the products sample module you will see that in the initialize event the web services are registered. You can register dialogs in the same place.

    Regards,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Answered
  3. Anton Mernov
    Anton Mernov avatar
    110 posts
    Registered:
    03 Dec 2008
    29 Jul 2011
    Link to this post
    Hi Radoslav,

    Thank you for quick reply! That works.

    Best regards,
    Anton
3 posts, 1 answered