Registration of a custom dialog

Posted by Community Admin on 04-Aug-2018 08:11

Registration of a custom dialog

All Replies

Posted by Community Admin on 28-Jul-2011 00:00

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

Posted by Community Admin on 29-Jul-2011 00:00

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

Posted by Community Admin on 29-Jul-2011 00:00

Hi Radoslav,

Thank you for quick reply! That works.

Best regards,
Anton

This thread is closed