让 jqGrid 与 MVC 一起工作所需的最少文件是什么? [英] What are the minimum files needed to get jqGrid working with MVC?

查看:20
本文介绍了让 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 一起工作所需的最少文件是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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