关于 telerik radEditor

发布于 2024-09-30 17:30:25 字数 1280 浏览 1 评论 0原文

在 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,而不是要渲染的 CustomSkin,该怎么办?默认皮肤??我需要在哪里设置我想要使用的皮肤的值?我不太了解 XML..所以问

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

[编辑]

尝试在 webconfig.xml 中全局设置皮肤,如 telerik 网站 如下:-

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

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

In the Telerik.Web.UI.xml file I found this entry

<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>

that says RadControls are using skin named Default..Now what if I want it to be not default ..what if I want it to be some CustomSkin to be rendered and not default skin?? Where do I need to set the value for the skin I wanna use? I don't know much of XML..so asking

Whats this xml file for anyway? Only describing stuff? What IS the purpose of this xml file??

[EDIT]

Tried setting Skin globally in webconfig.xml as mentioned in telerik's website as follows:-

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

This is not making any diff! is using default file only :(

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

梦断已成空 2024-10-07 17:30:25

使用组件的 Skin 属性。请参阅控制视觉外观帮助主题。 XML 文件与设置皮肤无关。

Use the Skin property of the component. See the controlling visual appearance help topics. The XML file is not related to setting skins.

叹梦 2024-10-07 17:30:25

这是智能感知的文档数据,可在 IDE 中为您提供信息。

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

编辑以响应评论:

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

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

当然,将 MyCustomSkin 替换为所选的皮肤。

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

This is documentation data for intellisense to provide you with information in your IDE.

As per the documentation you would set the Skin property to be the name of the skin you would like to load in place of "Default"

Edit in response to comment:

If you want to set the Skin globally then just apply the custom skin you want for the particular control in the SkinFile.skin for your current theme..

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

Of course replace MyCustomSkin with the skin of choice.

P.S. I have no idea of RadEditor is the right tag so you may want to check that out as well as this code is assuming that your TagPrefix for your Telerik controls is rad.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文