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

hiding telerik components from design view

1 Answer 63 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tyler
Top achievements
Rank 1
Tyler asked on 29 Jun 2010, 03:28 PM
Is there a way to hide some telerik components from Design View in visual studio? Like the RadScriptManager, RadSkinManager etc etc.

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 02 Jul 2010, 09:58 AM
Hi Tyler,

You can use the following technique:

<%@ Page Language="C#" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<script runat="server">
 
    protected void Page_Load(object sender, EventArgs e)
    {
        Panel1.Style.Remove("display");
    }
 
</script>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 
<head runat="server">
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>RadControls</title>
</head>
<body>
<form id="form1" runat="server">
 
before
 
<asp:Panel ID="Panel1" runat="server" style="display:none">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
<telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
</asp:Panel>
 
after
 
</form>
</body>
</html>


Best wishes,
Dimo
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Tyler
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or