<?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: Need help with the examples on trirand.com/blog/jqgrid/jqgrid.html</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/need-help-with-the-examples-on-trirand-comblogjqgridjqgrid-html</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/need-help-with-the-examples-on-trirand-comblogjqgridjqgrid-html/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>sprabhu on Need help with the examples on trirand.com/blog/jqgrid/jqgrid.html</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/need-help-with-the-examples-on-trirand-comblogjqgridjqgrid-html#p25169</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/need-help-with-the-examples-on-trirand-comblogjqgridjqgrid-html#p25169</guid>
        	        	<description><![CDATA[<p>Being a newbie, i have some basic questions regarding the examples on this site.</p>
<p>Taking the &#39;Loading Data&#39;--&#62; JSON data example, when i give it a try, i have a couple of issues:</p>
<p>a) The column heading for the first column doesn&#39;t appear.</p>
<p>b) None of the columns are sortable ?? no button next to the column heading.</p>
<p>b) The search and the reload images doesn&#39;t appear</p>
<p>Am i missing some thing ?</p>
<p>Here is my jsp</p>
<p>&#60;%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %&#62;<br />&#60;%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %&#62;</p>
<p>&#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&#62;<br />&#60;html xmlns="http://www.w3.org/1999/xhtml"&#62;</p>
<p>&#60;c:url value="spring-jqgrid-mongo" var="baseUrl"/&#62;</p>
<p>&#60;head&#62;<br />&#160;&#160; &#160;&#60;!-- &#60;link rel="stylesheet" type="text/css" media="screen" href="/${baseUrl}/resources/css/jquery/ui-lightness/jquery-ui-1.8.6.custom.css"&#62;--&#62;<br />&#160;&#160; &#160;&#60;link rel="stylesheet" type="text/css" media="screen" href="/${baseUrl}/resources/css/jquery/redmond-jquery-ui-1.8.1.custom.css"&#62;<br />&#160;&#160; &#160;<br />&#160;&#160;&#160; &#60;link rel="stylesheet" type="text/css" media="screen" href="/${baseUrl}/resources/css/jqgrid/ui.jqgrid.css"&#62;<br />&#160;&#160;&#160; &#60;link rel="stylesheet" type="text/css" media="screen" href="/${baseUrl}/resources/css/jquery/datePicker.css"&#62;<br />&#160;&#160; &#160;<br />&#60;style&#62;<br />.ui-datepicker {z-index:1200;}<br />&#60;/style&#62;</p>
<p>&#160;&#160; &#160;<br />&#60;!-- &#160;&#160; &#160;&#60;script type="text/javascript" src="/${baseUrl}/resources/js/jquery/jquery.ui.widget.js"&#62;&#60;/script&#62;--&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#60;script type="text/javascript" src="/${baseUrl}/resources/js/jquery/jquery-1.6.2.js"&#62;&#60;/script&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#60;script type="text/javascript" src="/${baseUrl}/resources/js/jquery/jquery.datePicker.js"&#62;&#60;/script&#62; <br />&#160;&#160; &#160;<br />&#160;&#160; &#160;&#60;script type="text/javascript"&#62;<br />&#160;&#160; &#160;&#160;&#160;&#160; var jq = jQuery.noConflict();<br />&#160;&#160; &#160;&#60;/script&#62;<br />&#160;&#160; &#160;&#60;script type="text/javascript" src="/${baseUrl}/resources/js/jquery/jquery-ui-1.8.6.custom.min.js"&#62;&#60;/script&#62; <br />&#160;&#160; &#160;&#60;script type="text/javascript" src="/${baseUrl}/resources/js/jqgrid/grid.locale-en.js" &#62;&#60;/script&#62;<br />&#160;&#160; &#160;&#60;script type="text/javascript" src="/${baseUrl}/resources/js/jqgrid/jquery.jqGrid.min.js"&#62;&#60;/script&#62;<br />&#160;&#160; &#160;&#60;script type="text/javascript" src="/${baseUrl}/resources/js/jquery/jquery.datePicker.js"&#62;&#60;/script&#62; <br />&#160;&#160; &#160;<br />&#160;&#160; &#160;&#60;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&#62;<br />&#160;&#160; &#160;&#60;title&#62;Spring MVC 3: jqGrid and MongoDB Integration Tutorial&#60;/title&#62;<br />&#160;&#160; &#160;<br />&#60;/head&#62;</p>
<p>&#60;body &#62;<br />&#60;script type="text/javascript"&#62;<br />&#160;&#160; &#160;jq(function() {<br />&#160;&#160; &#160;&#160;&#160; &#160;jq("#grid").jqGrid({<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;url:&#39;/${baseUrl}/krams/crud&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;datatype: &#39;json&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;mtype: &#39;GET&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;colNames:[&#39;Sl No.&#39;, &#39;First Name&#39;, &#39;Last Name&#39;,&#39;Address&#39;,&#39;DateofBirth&#39;],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;colModel:[<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;id&#39;,index:&#39;id&#39;, width:55,editable:false,editoptions:{readonly:true,size:10},hidden:true,sortable:true},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;firstName&#39;,index:&#39;lastName&#39;, width:100,editable:true, editrules:{required:true}, editoptions:{size:10},sortable:true},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;lastName&#39;,index:&#39;firstName&#39;, width:100,editable:true, editrules:{required:true}, editoptions:{size:10},sortable:true},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;address&#39;,index:&#39;address&#39;, width:100,editable:true, editrules:{required:true}, editoptions:{size:10},sortable:true},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;//{name:&#39;dob&#39;, index:&#39;dob&#39;, width:90,editable:true, formatter:&#39;date&#39;, formatoptions: {newformat:&#39;m/d/Y&#39;},editoptions:{size:20}}<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; //{ name: &#39;dob&#39;, index: &#39;dob&#39;, align: &#39;left&#39;, formatter: &#39;date&#39;,&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; search: true,&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; searchoptions: {&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; dataInit: function (el) {&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(el).datepicker({&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; changeYear: true,&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; changeMonth: true,&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; showButtonPanel: true,&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; dateFormat: &#39;dd-mm-yy&#39;,&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; onSelect: function () {&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (this.id.substr(0, 3) === "gs_") {&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // call triggerToolbar only in case of searching toolbar&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; setTimeout(function () {&#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; $("#grid_id")[0].triggerToolbar();&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }, 100);&#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;&#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; }}<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; { name: &#39;dob&#39;, index: &#39;dob&#39;, width: 120,editable: true,formatter:&#39;date&#39;, formatoptions: {newformat:&#39;m/d/Y&#39;}, editoptions: {size: 10, maxlengh: 10},sortable:true,sorttype:"date"<br />&#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; ],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;postData: { <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;rowNum:10,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;rowList:[10,20,30],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;height: 200,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;autowidth: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;rownumbers: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;pager: &#39;#pager&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;sortname: &#39;id&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; sortorder: "asc",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; caption:"Users",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; emptyrecords: "Empty records",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; loadonce: false,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; loadComplete: function() {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; jsonReader : {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; root: "rows",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; page: "page",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; total: "total",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; records: "records",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; repeatitems: false,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; cell: "cell",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; id: "id"<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; }<br />&#160;&#160; &#160;&#160;&#160; &#160;}).navGrid(&#39;#pager1&#39;,{edit:false,add:false,del:false});<br />&#160;&#160; &#160;});<br />&#60;/script&#62; </p>
<p>&#60;p&#62;Spring MVC 3: jqGrid&#60;/p&#62;<br />&#60;div id="jqgrid"&#62;<br />&#160;&#160; &#160;&#60;table id="grid"&#62;&#60;/table&#62;<br />&#160;&#160; &#160;&#60;div id="pager"&#62;&#60;/div&#62;<br />&#60;/div&#62;</p>
<p>&#60;div id="dialog" title="Feature not supported" style="display:none"&#62;<br />&#160;&#160; &#160;&#60;p&#62;That feature is not supported.&#60;/p&#62;<br />&#60;/div&#62;</p>
<p>&#60;div id="dialogSelectRow" title="Warning" style="display:none"&#62;<br />&#160;&#160; &#160;&#60;p&#62;Please select row&#60;/p&#62;<br />&#60;/div&#62;<br />&#60;/body&#62;</p>
<p>&#60;/html&#62;</p>
]]></description>
        	        	<pubDate>Tue, 15 Nov 2011 21:20:31 +0200</pubDate>
        </item>
</channel>
</rss>