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 一起工作所需的最少文件是什么?
基础教程推荐
- jQuery File Upload - 如何识别所有文件何时上传 2022-01-01
- WatchKit 支持 html 吗?有没有像 UIWebview 这样的控制器? 2022-01-01
- Node.js 有没有好的索引/搜索引擎? 2022-01-01
- 如何使用sencha Touch2在单页中显示列表和其他标签 2022-01-01
- 为什么我在 Vue.js 中得到 ERR_CONNECTION_TIMED_OUT? 2022-01-01
- 每次设置弹出窗口的焦点 2022-01-01
- 如何使用 CSS 显示和隐藏 div? 2022-01-01
- 什么是不使用 jQuery 的经验技术原因? 2022-01-01
- 如何在特定日期之前获取消息? 2022-01-01
- Javascript 在多个元素上单击事件侦听器并获取目标 2022-01-01
