StylesheetManager in DialogHandlerNoSession

2 posts, 1 answers
  1. Anton
    Anton avatar
    3 posts
    Member since:
    Apr 2009

    Posted 24 Jul 2015 Link to this post

    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 ?

  2. Answer
    Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 28 Jul 2015 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top