Remove rad tags from html code

4 posts, 0 answers
  1. Rafael
    Rafael  avatar
    13 posts
    Member since:
    Jan 2009

    Posted 13 Nov 2009 Link to this post

    Hi.

    I use raddock to move elements on my site, but, after saved , raddock is not used more.

    I use :

    dock.DockHandle = Telerik.Web.UI.DockHandle.None

    to disable dock, but the code of dock on html code is not removed.

    <div class="rdSideBorders rdHTitlebar"><div id="RadDock6bec097f-8628-4a31-9437-4c4f85f25187_T" class="rdTitlebar"
                    <em class="rdTitle">Dock</em><span class="rdCommands"><class="rdCustom" title="editar"></a><a class="rdClose" title="Close"></a><a class="rdCollapse" title="Collapse"></a></span
                </div><div id="RadDock6bec097f-8628-4a31-9437-4c4f85f25187_C" class="rdContent"
                     
    <div style="display:block;border:solid 2px green"
    <img src="Biblioteca/Menu/menu1.png" border="1" style="border-color:white" />


     
    </div> 
     

    i need only this code to show my site correct

    <div style="display:block;border:solid 2px green"
    <img src="Biblioteca/Menu/menu1.png" border="1" style="border-color:white" />
    /div> 
     

    Thank you
  2. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 18 Nov 2009 Link to this post

    Hello Rafael,

    The HTML code is removed and you can see for yourself on the attached screenshot and sample project. There is no way to completely remove the other HTML and render the <div> that you have suggested. I think that setting dock.DockHandle = Telerik.Web.UI.DockHandle.None gives you the expected visual appearance.

    To remove the borders from the RadDock use the following CSS:

    <style type="text/css">
        .rdSideBorders, .rdTopBorder, .rdBottomBorder
        {
            border: 0 !important;
        }
    </style>



    Greetings,
    Pero
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rafael
    Rafael  avatar
    13 posts
    Member since:
    Jan 2009

    Posted 02 Dec 2009 Link to this post

    Hello Admin

    If i use dock.DockHandle = Telerik.Web.UI.DockHandle.None i get the expected visual content, but i need clear HTML source too, but i see that its not possible.

    Thank you
  5. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 03 Dec 2009 Link to this post

    Hello Rafael,

    Yes, there is no built-in way to clear part (or all) of the HTML code generated by the RadDock control and leave only the <div> element of the ContentContainer.

    Best wishes,
    Pero
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top