This is a migrated thread and some comments may be shown as answers.

StylesheetManager in DialogHandlerNoSession

1 Answer 32 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
Anton
Top achievements
Rank 1
Anton asked on 24 Jul 2015, 08:44 AM

Hi Telerik Team,

When I place any of RadAjax controls on my page, I can control the path of the WebResource handler via the HttpHandlerUrl property of the StyleSheetManager. This is to avoid registration of the handler in the web.config.

However this setup breaks with all the Dilaogs used in RadEditor. They are all handled by the DialogHandler type which I can extend because it is public. However the StylesheetManager filed of this type is Private and I cannot instruct it to load the web resource from a given path - it always looks for the default path for WebResource handler.

 

How can I make the dialogs in RadEditor also respect the "global" for the StyleSheetManager's HttpHandlerUrl paroperty which I have across all my pages ?

1 Answer, 1 is accepted

Sort by
0
Accepted
Ianko
Telerik team
answered on 28 Jul 2015, 08:44 AM
Hi Anton,

The required approach is a bit tricky for implementation.

You should customize all built-in dialogs and configure the StyleSheetManager via the code behind programmatically. The tricky part is using the code behind. The dialogs have code behind integrated in the assembly that cannot be directly used. Therefore, a custom use control should be added in order to control their life cycle.

All this is demonstrated in the attached project, where only the LinkManager dialog is resolved. The same should be done for each needed dialog.

Regards,
Ianko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
ScriptManager and StyleSheetManager
Asked by
Anton
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or