JQuery的GridView控件 [英] JQuery GridView control

查看:120
本文介绍了JQuery的GridView控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请问像这样的东西存在吗?

Does anything like this exist?

我所寻找的是将是客户端,与编辑,取消的GridView的一行功能的控制。

What I am looking for is a control that is going to be client-side, with the Edit, Cancel row capabilities of a GridView.

我想用它来收集用户的数据,然后在服务器上保存的用户完成输入数据后。

I wish to use it to collect the data from the user and then save on the server after the user is done entering data.

编辑:

感谢所有的建议。有一件事,我想问一下在座的各位之前,我深入研究,并花时间学习这些框架。

Thanks for all the recommendations. One thing that I would like to ask all of you before I delve and spend time on learning these frameworks.

所有的你似乎使用ASP.net MVC和提及这些工具包是很好的与此有关。不过,我使用ASP.net web表单。做这些框架的老风味的ASP.net发挥好?

All of you seem to use ASP.net MVC and mention that these toolkits are good with this. I am however, using ASP.net web forms. Do these frameworks play well with old flavour of ASP.net?

推荐答案

是的。 jqGrid的的效果很好。尝试演示的。我们在ASP.NET MVC中使用它。

Yes. jqGrid works well. Try the demos. We use it with ASP.NET MVC.

更新:在您更新的问题,你问到使用的框架,如jQuery的用的WebForms。你能做这个吗?当然。你会想?这是一个更棘手的问题。在的WebForms,您的一般的让WebForms的生成JavaScript你。这就是为什么你的UpdatePanel等等。一方面,这是很容易的,因为你可以专注于C#您的编码的注意,你可以使用它不需要你写任何JavaScript在所有网格组件,使他们的工作。在另一方面,你是仅限于什么产生code可以做。是的,你可以手工编写JavaScript,甚至在的WebForms,但你必须要解决一些框架做的事情,比如上的控件的ID变化。是的,你可以写在C#中的事件处理程序,但这需要使用回传,这不自然的HTTP契合,与那些对最终用户可见的后果。

Update: In your updated question, you asked about using frameworks such as jQuery with WebForms. Can you do this? Sure. Would you want to? That's a more difficult question. In WebForms, you generally let WebForms generate JavaScript for you. That's why you have UpdatePanel and the like. On one hand, this is easy, because you can focus your coding attention on C#, and you can use grid components which don't require you to write any JavaScript at all to make them work. On the other hand, you're limited to what the generated code can do. Yes, you can write JavaScript manually, even in WebForms, but you have to work around some of the things the framework does, like changing IDs on controls. Yes, you can write event handlers in C#, but this requires the use of postbacks, which do not fit naturally in HTTP, with consequences that are visible to the end-user.

这是常见的不小的一部分使用jQuery在ASP.NET MVC,因为它附带的框架。但即使在此之前发生的事情,它仍然是非常普遍的是使用两个一起因为jQuery使得它很容易做到的事情是没有,否则ASP.NET MVC中的直接支持,就像在页面上做控制彼此交互。是的,这意味着你必须编写JavaScript,但只要你与OK,你得到,你可以写你想要的任何一种互动,而无需回发到服务器的巨大优势。

It is common to use jQuery with ASP.NET MVC in no small part because it ships with the framework. But even before that happened, it was still very common to use the two together because jQuery makes it very easy to do things which are otherwise not directly supported within ASP.NET MVC, like making controls on a page interact with each other. Yes, this means you have to write JavaScript, but as long as you're OK with that, you get the huge advantage that you can write any kind of interaction you want to without having to postback to the server.

如果你只是在寻找一个一个的WebForms良格控制,那么我会建议使用专为一的WebForms控制,而不是专为jQuery的一个网格。其原因是,code你会写适合更自然的WebForms的成语之内。

If you are just looking for a good grid control for WebForms, then I would suggest using a control designed for WebForms, rather than a grid designed for jQuery. The reason is that the code you will write will fit more naturally within the idioms of WebForms.

如果你只是想学习jQuery,好,这是一个很好的主意,因为框架是有趣的,有用的,精心设计的,但我不知道,一个伟大的控制是最好的地方开始。一个更好的地方开始可能会被添加视觉才能将现有的某些网页。这是比较容易入手已知的HTML和与jQuery操纵它比它是要生成新的HTML,并在同一时间学习的jQuery

If you just want to learn jQuery, well, that's a really good idea, because the framework is interesting, useful, and well-designed, but I'm not sure that a great control is the best place to start. A better place to start might be adding visual flair to some of your existing pages. It is easier to start with known HTML and manipulate it with jQuery than it is to be generating new HTML and learning jQuery at the same time.

这篇关于JQuery的GridView控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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