<?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: Moving rowList drop down</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/moving-rowlist-drop-down</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/moving-rowlist-drop-down/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>kiran1984 on Moving rowList drop down</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/moving-rowlist-drop-down#p24152</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/moving-rowlist-drop-down#p24152</guid>
        	        	<description><![CDATA[<p>Can anybody please help me to add some text before the &#39;no: rows per page&#39; dropdown in the jqgrd ?</p>
]]></description>
        	        	<pubDate>Thu, 04 Aug 2011 11:54:48 +0300</pubDate>
        </item>
        <item>
        	<title>kiran1984 on Moving rowList drop down</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/moving-rowlist-drop-down#p24073</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/moving-rowlist-drop-down#p24073</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>This soultion is not working. I dont see any change in the jqgrid after adding this snippet. COuld you please help.</p>
<p>Below is my code for rendering jqgrid.</p>
</p>
<p>&#160;&#160; @*jqGrid Code - refer /blog/jqgrid/jqgrid.html *@<br />&#160;&#160;&#160; &#60;script type="text/javascript"&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; function doWhenGridFullyLoaded() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert("Hi");</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if ($("#rowNumDD").length == 0) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert("Hi1");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;&#60;div id="rowNumDD" style="display:block;padding-left: 2px;float:left;text-align:left;"&#62;Show: &#60;/div&#62;&#39;).appendTo($("#subsDiv_toppager_left"));<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(".ui-pg-selbox").appendTo($("#rowNumDD"));<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#rowNumDD").append(" at a time.");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
<p>&#160;&#160;&#160; //set the context data into variables<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var pagename = "@Model.PageName";&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160; jQuery(document).ready(function () {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#list").jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: <a href="mailto:&#39;@Url.Action(&#34;SettingsHistoryDynamicGridData" target="_blank">&#39;@Url.Action("SettingsHistoryDynamicGridData</a>", "SettingsHistory")&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#39;json&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; mtype: &#39;POST&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; prmNames: { sort: "sortBy", order: "sortOrder" },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: [&#39;SettingElementId&#39;, &#39;SettingName&#39;, &#39;SettingValue&#39;,&#39;InstanceId&#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; &#39;Description&#39;, &#39;ModifiedBy&#39;, &#39;ModifiedDate&#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; &#39;Operation&#39;,&#39;SchemaName&#39;, &#39;Status&#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; &#39;CreatedBy&#39;, &#39;CreatedDate&#39;, &#39;ValHierarchyValue&#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;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;SettingElementId&#39;, index: &#39;SettingElementId&#39;, align: &#39;center&#39;, hidden: true },<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; { name: &#39;SettingName&#39;, index: &#39;SettingName&#39;, align: &#39;center&#39;, sortable: true },<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; { name: &#39;SettingValue&#39;, index: &#39;SettingValue&#39;, align: &#39;center&#39;, sortable: true },<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; { name: &#39;InstanceId&#39;, index: &#39;InstanceId&#39;, align: &#39;center&#39;, hidden: true },<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; { name: &#39;Description&#39;, index: &#39;Description&#39;, align: &#39;center&#39;, sortable: true },<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; { name: &#39;ModifiedBy&#39;, index: &#39;ModifiedBy&#39;, align: &#39;center&#39;, sortable: true },&#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;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;ModifiedDate&#39;, index: &#39;ModifiedDate&#39;, align: &#39;center&#39;, sortable: true, width: 190 },<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; { name: &#39;Operation&#39;, index: &#39;Operation&#39;, align: &#39;center&#39;, sortable: true, width: 80 },<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; { name: &#39;SchemaName&#39;, index: &#39;SchemaName&#39;, align: &#39;center&#39;, sortable: true, width: 100 },<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; { name: &#39;Status&#39;, index: &#39;Status&#39;, align: &#39;center&#39;, sortable: true, width: 60 },<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; { name: &#39;CreatedBy&#39;, index: &#39;CreatedBy&#39;, align: &#39;center&#39;, hidden: true },<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; { name: &#39;CreatedDate&#39;, index: &#39;CreatedDate&#39;, align: &#39;center&#39;, hidden: true }, <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; { name: &#39;ValHierarchyValue&#39;, index: &#39;ValHierarchyValue&#39;, align: &#39;center&#39;, hidden: true}],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: jQuery(&#39;#pager&#39;),<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum: 15,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowList: [15, 25, 50, 75, 100],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: "SettingName",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: "asc",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rownumbers: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; emptyrecords: &#39;Settings History Not Available&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; width: 1000,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; height: "100%",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; altRows: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; altclass: &#39;ui-state-secondary-custom&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; hoverrows: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; forceFit: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; loadtext: &#39;Loading Settings History Log...&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; loadui: &#39;block&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; toolbar: [true,&#39;both&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; loadComplete: doWhenGridFullyLoaded</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />//&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#list tr:nth-child(even)&#39;).removeClass("ui-priority-secondary");<br />//&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#list tr:nth-child(odd)&#39;).addClass("ui-priority-secondary");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; //&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#pager .ui-pg-selbox").closest("td").before().append("Rows");</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160; }); <br />&#160;&#160;&#160; &#60;/script&#62;&#160;</p>
<p>&#160;@*HTML Required fOR jqGrid*@<br />&#160;&#160;&#160; &#60;h3 style="color:#0066cc" &#62; @Model.PageName - Settings History&#60;/h3&#62;<br />&#160;&#160;&#160; &#60;center&#62;&#160;&#160;&#160; <br />&#160;&#160;&#160; &#60;table id="list"&#160; cellpadding="0" cellspacing="0"&#160; style="height:100%; width:100%; vertical-align:middle;"&#62;&#60;/table&#62;<br />&#160;&#160;&#160; &#60;div id="pager" class="scroll" style="text-align:center;"&#62;&#60;/div&#62;<br />&#160;&#160;&#160; &#60;/center&#62;</p>
]]></description>
        	        	<pubDate>Wed, 27 Jul 2011 15:20:31 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Moving rowList drop down</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/moving-rowlist-drop-down#p15547</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/moving-rowlist-drop-down#p15547</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>If this work and there is no problems, then I will say it is good.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 09 Mar 2010 20:25:42 +0200</pubDate>
        </item>
        <item>
        	<title>bdensmore on Moving rowList drop down</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/moving-rowlist-drop-down#p15502</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/moving-rowlist-drop-down#p15502</guid>
        	        	<description><![CDATA[<p>Just in case someone else is looking to do the same thing, I&#39;ll share what I did.</p>
</p>
<p>I don&#39;t know that this is the best method, and would be open to someone sharing a better way. You could probably extend the jqGrid plugin to fix this, but I&#39;m not sure if that would be overkill for such a small change. It&#39;s something that maybe should be included as an option.</p>
</p>
<p>This is what I did:</p>
</p>
<p>After my grid has loaded I&#39;ve added this little piece:</p>
</p>
<p>if ( $("#rowNumDD").length == 0 ) {</p>
<p>$(&#39;&#60;div id="rowNumDD" style="display:block;padding-left: 2px;float:left;text-align:left;"&#62;Show: &#60;/div&#62;&#39;).appendTo($("#subsDiv_toppager_left"));</p>
<p>$(".ui-pg-selbox").appendTo($("#rowNumDD"));</p>
<p>$("#rowNumDD").append(" at a time.");</p>
<p>}</p>
</p>
<p>It&#39;s pretty self explanatory but this is what the code does.</p>
<p>I&#39;ve added the if statement to make sure the div I&#39;m creating doesn&#39;t exist. Without this if statement you will have an unusable drop down.</p>
<p>This will then create a new &#60;div&#62; and append it to the left hand side of the pager toolbar. &#160;I then use the appendTo() method to grab the rowList dropdown and stick it in my new div and then append some more text after the drop down.</p>
</p>
<p>It works, but as I said. There is probably a better way.</p>
]]></description>
        	        	<pubDate>Mon, 08 Mar 2010 22:16:03 +0200</pubDate>
        </item>
        <item>
        	<title>bdensmore on Moving rowList drop down</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/moving-rowlist-drop-down#p15439</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/moving-rowlist-drop-down#p15439</guid>
        	        	<description><![CDATA[<p>I need to move the rowList dropdown to the left by itself but keep the other paging options to the right. I also need to add some text in front of and after the drop down so that it looks like "Show 20 at a time".</p>
</p>
<p>Is there a way to add these options natively in jqGrid or do I need to do some DOM manipulation and css changes to remove it from the table it currently sits in and add it back in?</p>
</p>
<p>Thanks,</p>
<p>Ben</p>
]]></description>
        	        	<pubDate>Sat, 06 Mar 2010 04:57:11 +0200</pubDate>
        </item>
</channel>
</rss>