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

Remove rad tags from html code

3 Answers 60 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Rafael
Top achievements
Rank 1
Rafael asked on 13 Nov 2009, 11:42 PM
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

3 Answers, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 18 Nov 2009, 02:33 PM
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.
0
Rafael
Top achievements
Rank 1
answered on 02 Dec 2009, 08:59 PM
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
0
Pero
Telerik team
answered on 03 Dec 2009, 12:14 PM
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.
Tags
Dock
Asked by
Rafael
Top achievements
Rank 1
Answers by
Pero
Telerik team
Rafael
Top achievements
Rank 1
Share this question
or