Kendo UI Grid-在哪里查找字体和图标 [英] Kendo UI Grid - Where to look for fonts and icons

查看:73
本文介绍了Kendo UI Grid-在哪里查找字体和图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习Kendo UI的早期阶段.我已经完成了网格工作并加载了数据,但是应该出现在网格中的图像/图标都没有出现.加载包含网格的页面时,出现以下404错误.错误消息不会告诉我期望在哪里找到这些文件.

Kendo UI在哪里寻找这些文件?或者,我可以告诉剑道在哪里寻找它们吗?

我目前在MVC文件夹结构中找到文件,但找不到它们:

解决方案

字体和图标应位于content\kendo\{your kendo version}\下(假定您正在基于标签创建MVC.net网站(请参见下图)

如果缺少此选项,请尝试在Visual Studio中运行升级向导(假设您在此处使用Visual Studio),或者仅包括分发中所需的文件.

您还可以检查一下您的网站中是否包含了必需的CSS链接(请注意,我在这里使用了bootstrap主题,因此请根据需要更改以使用您的主题):

  <link href="@Url.Content("~/Content/kendo/2017.1.118/kendo.common-bootstrap.min.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/kendo/2017.1.118/kendo.mobile.all.min.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/kendo/2017.1.118/kendo.dataviz.min.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/kendo/2017.1.118/kendo.bootstrap.min.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/kendo/2017.1.118/kendo.dataviz.bootstrap.min.css")" rel="stylesheet" type="text/css" />

如果此设置正确,请确保将构建操作"的字体等设置为内容"

I'm in the early stages of learning Kendo UI. I've got the grid work and loading data but none of the images/icons that should appear in the grid are appearing. When I load the page containing the grid, I get the following 404 errors. The error message doesn't tell me where it's expecting to find these files.

Where is Kendo UI looking for these files? Or, can I tell Kendo where to look for them?

I currently have the files located here in my MVC folder structure, but it's not finding them:

解决方案

The fonts and icons should be located under the content\kendo\{your kendo version}\ (assuming you are creating an MVC.net site based on the tag (see image below)

if this is missing then try running the upgrade wizard in visual studio (assuming you are using visual studio here) or just include the files you require from your distribution.

can you also check you have included the required css links within your site (please note I am using the bootstrap theme here so alter to work with your theme as required):

  <link href="@Url.Content("~/Content/kendo/2017.1.118/kendo.common-bootstrap.min.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/kendo/2017.1.118/kendo.mobile.all.min.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/kendo/2017.1.118/kendo.dataviz.min.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/kendo/2017.1.118/kendo.bootstrap.min.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/kendo/2017.1.118/kendo.dataviz.bootstrap.min.css")" rel="stylesheet" type="text/css" />

if this is set up correctly just make sure the fonts etc are set to "content" for the 'Build Action'

这篇关于Kendo UI Grid-在哪里查找字体和图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆