将 jqGrid 与 asp.net 网络表单一起使用(免费版) [英] Using jqGrid with asp.net web forms (free version)

查看:23
本文介绍了将 jqGrid 与 asp.net 网络表单一起使用(免费版)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Asp.net Web Forms ,之前我使用的是 这个 jqGrid 示例,它不是免费,这我后来意识到,既然混乱已经消除,我现在将不得不使用 jqGrid 开源的东西,因为我不会选择商业的,任何人都可以指出我开始使用 jqGrid 和 Asp.Net Web 表单的链接,如果有人给出一个示例来显示 jqGrid 中示例表中的免费列,那就太好了,我在网上找到了一些文章,但无法理解它是如何工作的.欢迎任何建议.谢谢.

I am using Asp.net Web Forms , earlier I used this jqGrid sample which is not free , this I realized later , now that the confusion was cleared , I will now have to use jqGrid open source thing as I wont opt for commercial one , Can anyone point me to links for getting started with jqGrid and Asp.Net Web Forms , it would be really great if someone gives an example which will show free columns from a sample table in jqGrid , I found some articles online , but couldnot understand how it works. Any suggestions are welcome. Thanks.

推荐答案

我认为工作中的 Visual Studio 演示项目最能帮助你.

I think that working Visual Studio demo projects could help you mostly.

演示来自答案 在 ASP.NET Web 窗体应用程序中使用 ASHX 处理程序.它仅使用 免费开源包 jqGrid,仅由 JavaScript 代码组成.您可以从 github 下载最新版本的源代码.

The demo from the answer uses ASHX handler in ASP.NET Web Form application. It uses only free open source package jqGrid which consist from JavaScript code only. The latest version of the source code you can download from github.

另一个演示来自答案 在 ASP.NET Web 窗体应用程序中也使用 ASHX 处理程序.它展示了如何实现网格的编辑.

Another demo from the answer uses ASHX handler in ASP.NET Web Form application too. It shows how to implement editing of the grid.

我认为拥有两个演示项目,您可以创建使用全套 jqGrid 功能的应用程序.此外,ASP.NET Web 窗体中 ASHX 处理程序的使用仅定义了客户端与服务器通信的方式.因此,您可以使用任何 技术来访问数据库.因此,您可以使用实体框架或 LINQ to SQL 甚至更旧的,但在许多情况下,从性能的角度来看,最好使用 SqlCommandSqlDataReader.

I think having both of the demo project you can create application which uses full set of jqGrid features. Moreover the usage of ASHX handler in ASP.NET Web Form define only the way how the client communicate with the server. So you can use any technology which you prefer for the Database access. So You can use either Entity Framework or LINQ to SQL or even more old, but in many cases the best from the performance point of view SqlCommand with SqlDataReader.

重要的是要了解,您可以从为 ASP.NET MVC 等其他技术创建的代码示例中获得大部分内容(请参阅示例另一个这个这个).因此,您可以在 ASP.NET Web 表单解决方案的 ASHX 处理程序中实现自动完成、导出到 Excel 等功能.

It's important to understand that you can get the most part from the code examples created for another technology like ASP.NET MVC (see the example, another one, this one or this one). So you can implement Autocomplete, Export to Excel etc features in the ASHX handler in ASP.NET Web Form solution.

这篇关于将 jqGrid 与 asp.net 网络表单一起使用(免费版)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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