What are the minimum files needed to get jqGrid working with MVC?(让 jqGrid 与 MVC 一起工作所需的最少文件是什么?)
问题描述
我下载了 jqGrid 的文件,但我不太确定需要参考哪些文件.到目前为止,我有这些文件:
I downloaded the files for jqGrid but I'm not quite sure what files I need to reference. So far I have these files:
<link href='@Url.Content("~/Content/themes/base/jquery-ui.css")' ... />
<link href='@Url.Content("~/Content/themes/redmond/jquery-ui-1.8.custom.css")' ... />
<link href='@Url.Content("~/Content/themes/redmond/ui.jqgrid.css")' ... />
<link href='@Url.Content("~/Scripts/jquery.jqGrid-4.3.1/css/ui.jqgrid.css")' ... />
<script src='@Url.Content("~/Scripts/jquery-1.7.1.min.js")' ...></script>
<script src='@Url.Content("~/Scripts/jquery-ui-1.8.16.min.js")' ...></script>
<script src='@Url.Content("~/Scripts/jquery.jqGrid-4.3.1/js/i18n/grid.locale-en.js")' ...></script>
<script src='@Url.Content("~/Scripts/jquery.jqGrid-4.3.1/js/jquery.jqGrid.min.js")' ...></script>
我看到另一个例子表明这些是除了 jQuery 之外还需要的文件.有人可以确认这就是所需要的并且以正确的顺序或建议我是否需要添加更多.例如,我需要指向语言环境文件的链接吗?
I saw another example suggesting that these were the files needed in addition to jQuery. Can someone confirm this is all that's needed and in the correct order or advise if I need to add more. For example do I need the link to the locale file?
我刚刚开始学习 jqGrid.我环顾四周,还没有找到一个很好的例子来说明如何将它与 MVC3 和 Razor 一起使用.有没有人有他们认为非常有用的参考资料的链接.只是真的需要一个好的链接,但我在 Google 上找到的大多数链接都是旧的,并且没有使用 Razor.
I am just starting out learning about jqGrid. I looked around and didn't yet find a good example of how to use this with MVC3 and Razor. Does anyone have links to references that they have found very useful. Just really need one good link but most links I found with Google were old and not using Razor.
推荐答案
您可以在 jqGrid 文档.在你的情况下,它会是
The minimal list of the CSS and JavaScript files which need be included you can find in the jqGrid documentation. In your case it will be
<link href='@Url.Content("~/Content/themes/redmond/jquery-ui-1.8.custom.css")' rel='stylesheet' type='text/css' />
<link href='@Url.Content("~/Scripts/jquery.jqGrid-4.3.1/css/ui.jqgrid.css")' rel='stylesheet' type='text/css' />
<script src='@Url.Content("~/Scripts/jquery-1.7.1.min.js")' type='text/javascript'></script>
<script src='@Url.Content("~/Scripts/jquery.jqGrid-4.3.1/js/i18n/grid.locale-en.js")' type='text/javascript'></script>
<script src='@Url.Content("~/Scripts/jquery.jqGrid-4.3.1/js/jquery.jqGrid.min.js")' type='text/javascript'></script>
这篇关于让 jqGrid 与 MVC 一起工作所需的最少文件是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:让 jqGrid 与 MVC 一起工作所需的最少文件是什么?
基础教程推荐
- Chart.js 在线性图表上拖动点 2022-01-01
- 自定义 XMLHttpRequest.prototype.open 2022-01-01
- Vue 3 – <过渡>渲染不能动画的非元素根节点 2022-01-01
- 如何使用JIT在顺风css中使用布局变体? 2022-01-01
- Electron 将 Node.js 和 Chromium 上下文结合起来意味着 2022-01-01
- 直接将值设置为滑块 2022-01-01
- 我可以在浏览器中与Babel一起使用ES模块,而不捆绑我的代码吗? 2022-01-01
- 用于 Twitter 小部件宽度的 HTML/CSS 2022-01-01
- html表格如何通过更改悬停边框来突出显示列? 2022-01-01
- 如何使用TypeScrip将固定承诺数组中的项设置为可选 2022-01-01