与AngularJS的jqGrid [英] jqGrid with AngularJS

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

问题描述

我一直在寻找如何使用的jqGrid与AngularJS一个很好的例子。
我知道对ngGrid等AngularJS支持网格控件但不幸的是我有一个总的主题制定了基于该jqGrid的。

I have been searching for a good example of how to use jqGrid with AngularJS. I am aware about the ngGrid and other AngularJS supported grid controls but unfortunately I have an overall theme worked out based on the jqGrid.

我最近开始角,所以请原谅我的小白'湖。

I have recently started Angular, so please excuse my noob 'ness.

1),我可以使用$ http.get控制器内从我的服务器API获取数据。没有问题。
2),我所遇到的所有基于使用jQuery阿贾克斯的jqGrid样本调用获取数据并绑定到网格。我不希望做,除非你在这里专家告诉我,它的好。
3)我以为对方选择是呼吁$ document.load()控制器方法和分配结果的网格控件,并继续jqGrid的初始化。但是它与使用jQuery AJAX获取数据有什么区别?

1) I can fetch data from my server api inside the controller using $http.get. No issues. 2) The jqGrid samples that I have come across all use jquery based ajax calls to fetch the data and bind to the grid. Which I do not want to do unless you experts here tell me that its okay. 3) The other option I thought was to call the controller method on $document.load() and assign the results to the grid control, and continue with the jqGrid initialisation. But what difference does it make from fetching the data using jquery ajax?

非常感谢你所有的答案。

Thank you very much for all your answers.

推荐答案

目前我正在与jqGrid的组件工作的一组angularjs指令。
该项目是开源的,你可以发现它在github https://github.com/9ci/angle-grinder
这里是一个简短的文档如何使用电网指令 HTTP://9ci.github。 IO /角磨机/文档/#文档-gridz 我希望这将是有益的。

Currently I'm working on a set of angularjs directives for working with jqGrid component. The project is open sourced and you could find it on github https://github.com/9ci/angle-grinder Here is a short documentation how to use grid directive http://9ci.github.io/angle-grinder/docs/#docs-gridz I hope it will be useful.

这个项目是早期的alpha版本,所以任何拉动需求,疑问和想法,欢迎;)

This project is in early alpha version so any pull requests, issues and ideas are welcome ;)

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

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