【问题标题】:Regarding telerik radEditor关于telerik radEditor
【发布时间】:2011-05-06 12:37:15
【问题描述】:

在 Telerik.Web.UI.xml 文件中我找到了这个条目

<member name="P:Telerik.Web.UI.RadDataBoundControl.Skin">
            <summary>Gets or sets the skin name for the control user interface.</summary>
            <value>A string containing the skin name for the control user interface. The default is string.Empty.</value>
            <remarks>
            <para>
            If this property is not set, the control will render using the skin named "Default".
            If EnableEmbeddedSkins is set to false, the control will not render skin.
            </para>
            </remarks>



        </member>

说 RadControls 正在使用名为 Default 的皮肤。现在如果我希望它不是默认皮肤怎么办……如果我希望它是一些要渲染的 CustomSkin 而不是默认皮肤怎么办?我需要在哪里设置我想要使用的皮肤的值?我不太了解 XML..所以问

这个 xml 文件到底是干什么用的?只描述东西?这个xml文件的目的是什么??

[编辑]

尝试在 webconfig.xml 中全局设置 Skin,如 telerik's website 中所述,如下所示:-

<add key="Telerik.EnableEmbeddedSkins" value="true" />
<add key="Telerik.EnableEmbeddedBaseStylesheet" value="true" />
<add key="Telerik.RadEditor.Skin" value="CustomSkin" />

这不会造成任何差异!仅使用默认文件:(

【问题讨论】:

    标签: c# asp.net css telerik


    【解决方案1】:

    使用组件的Skin 属性。请参阅controlling visual appearance help topics。 XML文件与设置皮肤无关。

    【讨论】:

    • 我已经试过了..我想要的是 RadControl 默认使用自定义皮肤...我有很多 Rad 编辑器控件,并且在每个 radEditor 控件上设置皮肤属性很痛苦所以寻找除此之外的其他方法..thot 我可以只更改某个 xml 文件中的一个条目,或者将默认皮肤设置为所有 radEditor 控件的 CustomSkin 的东西..有什么想法吗?
    • 是的,你可以全局设置皮肤——查看皮肤注册帮助主题中的“全局皮肤设置”部分——telerik.com/help/aspnet-ajax/skinregistration.html
    • 哦,我看到你想通了。但是,您应该禁用嵌入的皮肤...
    【解决方案2】:

    这是 intellisense 的文档数据,用于在 IDE 中为您提供信息。

    根据文档,您可以将 Skin 属性设置为您要加载的皮肤名称,以代替 "Default"

    根据评论进行编辑:

    如果您想全局设置皮肤,那么只需为当前主题的 SkinFile.skin 中的特定控件应用您想要的自定义皮肤..

    <rad:RadEditor 
    runat="server"
    Skin="MyCustomSkin" />
    

    当然用选择的皮肤替换MyCustomSkin

    附:我不知道RadEditor 是正确的标签,因此您可能需要检查一下,并且此代码假设您的 Telerik 控件的TagPrefixrad

    【讨论】:

    • 我找不到 .skin 文件 ..尝试在 webconfig 中做一些事情,如 Telerik 的网站中所述..请在我的问题中检查上面的更新..thnx
    猜你喜欢
    • 2011-05-02
    • 2014-03-01
    • 2014-03-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多