RadEditor ToolbarProviderID while using RadPageView

2 posts, 0 answers
  1. Josh
    Josh avatar
    4 posts
    Member since:
    Apr 2011

    Posted 13 Mar 2012 Link to this post

    We are trying to use the ToolbarProviderID functionality with multiple RadEditor controls.  The RadEditor controls are being instantiated at RunTime.  When the first RadEditor control is being created, we store the ID of that Editor to be used as the ToolbarProviderID for later Editors.

    When we run, the Toolbar on the first RadPageView page where the first Editor is drawn renders as it should.  When I switch to a Tab that contains an additional Editor, we encounter a Javascript error.

    My question:  how do we use the ToolbarProviderID when the ID of the control will not be visible because of the RadPageView hiding the control?
  2. Rumen
    Admin
    Rumen avatar
    14366 posts

    Posted 14 Mar 2012 Link to this post

    Hi,

    From our support ticket communication, I learned that you use the Floating toolbar mode of RadEditor, but not the default one. I talked with one of our lead developers and he explained that that the ToolProviderID Floating scenario in Multipage is unsupported. The ToolProviderID just copies the HTML of the Toolbar from the page and clones it across the editors on the page. When one of the editors, however, is hidden and the floating toolbar is still not created, the code could not copy non existing HTML content and apply it to the hidden editor.

    That is why my suggestion is to either use the Default toolbar mode in your scenario, or just not set the ToolProviderID property.


    Greetings,
    Rumen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top