<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: use jqgrid with angularjs</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/use-jqgrid-with-angularjs</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/help/use-jqgrid-with-angularjs/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>seph on use jqgrid with angularjs</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/use-jqgrid-with-angularjs#p30639</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/use-jqgrid-with-angularjs#p30639</guid>
        	        	<description><![CDATA[<p>Thanks a lot for posting this fae... can you please also provide some sample HTML to use with this directive?&#160;</p>
]]></description>
        	        	<pubDate>Mon, 19 May 2014 23:52:06 +0300</pubDate>
        </item>
        <item>
        	<title>fae on use jqgrid with angularjs</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/use-jqgrid-with-angularjs#p30535</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/use-jqgrid-with-angularjs#p30535</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I wrote this small directive (far from ideal, but sufficient for me)</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4638' value='Select Code' data-codeid='sfcode4638' /></p>
<div class='sfcode' id='sfcode4638'>.directive(&#39;ngJqgrid&#39;, function ($window) {<br />&#160;&#160;&#160; return {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; restrict: &#39;E&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; replace: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; scope: {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; config: &#39;=&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; data:&#160;&#160; &#39;=?&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; insert: &#39;=?&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; api:&#160;&#160;&#160; &#39;=?&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; link: function (scope, element, attrs) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var table, div;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; scope.$watch(&#39;config&#39;, function (value) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; element.children().empty();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; table = angular.element(&#39;&#60;table id=&#34;&#39; + attrs.gridId + &#39;&#34;&#62;&#60;/table&#62;&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; element.append(table);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (attrs.pagerId) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; value.pager = &#39;#&#39; + attrs.pagerId;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var pager = angular.element(value.pager);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (pager.length == 0) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; div = angular.element(&#39;&#60;div id=&#34;&#39; + attrs.pagerId + &#39;&#34;&#62;&#60;/div&#62;&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; element.append(div);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; table.jqGrid(value);</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // Variadic API - usage:<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //&#160;&#160; view:&#160; &#60;ng-jqgrid ... vapi=&#34;apicall&#34;&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //&#160;&#160; ctrl:&#160; $scope.apicall(&#39;method&#39;, &#39;arg1&#39;, ...);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; scope.vapi = function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var args = Array.prototype.slice.call(arguments,0);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return table.jqGrid.apply(table, args);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; };</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // allow to insert(), clear(), refresh() the grid from <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // outside (e.g. from a controller). Usage:<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //&#160;&#160; view:&#160; &#60;ng-jqgrid ... api=&#34;gridapi&#34;&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //&#160;&#160; ctrl:&#160; $scope.gridapi.clear();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; scope.api = {</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; insert: function(rows) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (rows) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; for (var i = 0; i &#60; rows.length; i++) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; scope.data.push(rows[i]);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; table.jqGrid(&#39;setGridParam&#39;, { data: scope.data })<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; .trigger(&#39;reloadGrid&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; clear: function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; scope.data.length = 0;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; table.jqGrid(&#39;clearGridData&#39;, { data: scope.data })<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; .trigger(&#39;reloadGrid&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; refresh: function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; table<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; .jqGrid(&#39;clearGridData&#39;)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; .jqGrid(&#39;setGridParam&#39;, { data: scope.data })<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; .trigger(&#39;reloadGrid&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; };<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; scope.$watch(&#39;data&#39;, function (value) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; table.jqGrid(&#39;setGridParam&#39;, { data: value })<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; .trigger(&#39;reloadGrid&#39;)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160; };<br />})</p>
</div>
<p>Kind regards</p>
]]></description>
        	        	<pubDate>Wed, 23 Apr 2014 13:16:12 +0300</pubDate>
        </item>
        <item>
        	<title>tony on use jqgrid with angularjs</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/use-jqgrid-with-angularjs#p30529</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/use-jqgrid-with-angularjs#p30529</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>Thanks for letting us know about this.</p>
</p>
<p>Kind Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 22 Apr 2014 11:30:48 +0300</pubDate>
        </item>
        <item>
        	<title>lucassus on use jqgrid with angularjs</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/use-jqgrid-with-angularjs#p30523</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/use-jqgrid-with-angularjs#p30523</guid>
        	        	<description><![CDATA[<p>Sure it&#39;s possible. You could check my open source project <a href="https://github.com/9ci/angle-grinder" rel="nofollow" target="_blank">https://github.com/9ci/angle-grinder</a></p>
<p>Basically you could easily write angularjs directive/wrapper for jqGrid plugin and use $http service to feed the grid with data. Both example you&#39;ll find in this project.</p>
]]></description>
        	        	<pubDate>Sun, 20 Apr 2014 11:05:45 +0300</pubDate>
        </item>
        <item>
        	<title>fae on use jqgrid with angularjs</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/use-jqgrid-with-angularjs#p30418</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/use-jqgrid-with-angularjs#p30418</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I would like to use jqgrid in an angular project.</p>
<p>But according to <a title="here" href="http://docs.angularjs.org/misc/faq" target="_blank">http://docs.angularjs.org/misc/faq</a> :</p>
<p style="padding-left: 30px;"><em>Stop trying to use jQuery to modify the DOM in controllers. Really.</em></p>
<p style="padding-left: 30px;"><em>consider removing jQuery from your app. Really.</em></p>
<p>Is it possible (easy) to write an angular directive for jqgrid?</p></p>
]]></description>
        	        	<pubDate>Fri, 28 Mar 2014 11:45:41 +0200</pubDate>
        </item>
</channel>
</rss>