如何更改 Telerik GridGroupByExpression 箭头的颜色?

发布于 2024-09-15 02:41:38 字数 384 浏览 5 评论 0原文

有谁知道如何更改下面链接中显示的 GridGroupByExpression 箭头的颜色? http://demos.telerik.com/aspnet- ajax/grid/examples/groupby/outlookstyle/defaultcs.aspx

我还没有弄清楚如何更改默认黑色的颜色。我想将项目中的几个更改为白色(在上面的演示中,它是蓝色的阴影),但我不知道如何实现这一点(演示没有显示如何更改它),所以如果有人知道我如何才能做到这一点,我将不胜感激。先感谢您。

Does anybody know how to change the color of GridGroupByExpression arrow shown at the link below?
http://demos.telerik.com/aspnet-ajax/grid/examples/groupby/outlookstyle/defaultcs.aspx

I haven't figured out how to change the color from the default black. I'd like to change the several I have in my project to white (in the above demo it's a shade of blue) but I have no clue how to pull this off (the demo doesn't show how to change it), so if anybody knows how I can accomplish this I'd greatly appreciate it. Thank you in advance.

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

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

发布评论

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

评论(2

蘸点软妹酱 2024-09-22 02:41:38

最简单的方法是订阅 OnColumnCreated 事件并使用以下代码片段:

        if (e.Column is GridGroupSplitterColumn)
        {
            (e.Column as GridGroupSplitterColumn).ExpandImageUrl = "image.gif";
            (e.Column as GridGroupSplitterColumn).CollapseImageUrl = "image.gif";
        }

用于这些组的图像是“SingleMinus.gif”和“SinglePlus.gif”图像,您可以在本地 Telerik 安装文件夹。它们应该可以在 Skins/[Skin Name]/Grid/ 文件夹中找到。

The easiest thing to do would be to just subscribe to the OnColumnCreated event and use the following code-snippet:

        if (e.Column is GridGroupSplitterColumn)
        {
            (e.Column as GridGroupSplitterColumn).ExpandImageUrl = "image.gif";
            (e.Column as GridGroupSplitterColumn).CollapseImageUrl = "image.gif";
        }

The images that are used for these groups are the "SingleMinus.gif" and "SinglePlus.gif" images that you can find within the local Telerik install folder. They should be found in the Skins/[Skin Name]/Grid/ folder.

迷你仙 2024-09-22 02:41:38

@Kswift:我们无法更改图像的颜色,我们必须使用 Carl 建议的 OnColumnCreated 事件,如果您想更改图像的颜色,您可以使用任何照片编辑器来完成,而不是使用上述方法与网格绑定。

@Kswift : we can not change the colour of an image , we have to use the OnColumnCreated event what Carl suggested ,if you want to change the color of an image , you can do it with any photo editor and than use the above method to bind with the grid.

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