<?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: Saving Grid Settings on the Server</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/saving-grid-settings-on-the-server</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/saving-grid-settings-on-the-server/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Larry D on Saving Grid Settings on the Server</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/saving-grid-settings-on-the-server#p3232</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/saving-grid-settings-on-the-server#p3232</guid>
        	        	<description><![CDATA[<p>Chris,</p>
<p>one gotcha is when cut and pasting code from this type of board. The quotes do not paste correctly so make sure after you paste the code you overwrite single and double quotes with the correct chars from your keyboard.</p>
]]></description>
        	        	<pubDate>Mon, 24 Nov 2008 15:07:18 +0200</pubDate>
        </item>
        <item>
        	<title>Chris N on Saving Grid Settings on the Server</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/saving-grid-settings-on-the-server#p3225</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/saving-grid-settings-on-the-server#p3225</guid>
        	        	<description><![CDATA[<p>I&#39;m trying to implement the code above, but for some reason I am receiving a JSON is undefined error. I tried searching Google to resolve the issue but found no relevant information to help me.</p>
]]></description>
        	        	<pubDate>Mon, 24 Nov 2008 08:12:58 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Saving Grid Settings on the Server</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/saving-grid-settings-on-the-server#p2749</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/saving-grid-settings-on-the-server#p2749</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Some properties does not change (like width) if you change it dynamically.&#160; But I think this should be.</p>
<p>Anyway I will look how can correct this.</p>
<p>Thank you</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 29 Oct 2008 02:37:23 +0200</pubDate>
        </item>
        <item>
        	<title>Larry D on Saving Grid Settings on the Server</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/saving-grid-settings-on-the-server#p2705</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/saving-grid-settings-on-the-server#p2705</guid>
        	        	<description><![CDATA[<p>Tony, I found the getColProp function in the docs. This sort of gives me what I want but you have to name each column - you can not get info on all the columns.</p>
<p>This does not work:</p>
<p>*********************</p>
<p>	gridParams = JSON.stringify($(â€#a_allâ€).getColProp());</p>
<p>*********************</p>
<p>So I have to do this</p>
<p>*********************</p>
<p>	gridParams1 = JSON.stringify($(â€#a_allâ€).getColProp(â€idâ€));<br />
	gridParams2 = JSON.stringify($(â€#a_allâ€).getColProp(â€nameâ€));<br />
	gridParams3 = JSON.stringify($(â€#a_allâ€).getColProp(â€dateâ€));</p>
<p>*********************</p>
<p>Note too that I think there is a problem with the column widths not being updated.</p>
<p>I have a column name and if I look at the properties it shows:</p>
<p>*********************</p>
<p>{â€nameâ€:â€nameâ€,â€indexâ€:â€nameâ€,â€widthâ€:160,â€editableâ€:true,â€edittypeâ€:â€textâ€,â€editoptionsâ€:{â€sizeâ€:â€75â€³,â€maxlengthâ€:â€250â€³},â€resizableâ€:true}</p>
<p>*********************</p>
<p>Thatâ€™s fine. Now if I use the hide/show column feature to remove this from the grid it shows:</p>
<p>*********************</p>
<p>{â€nameâ€:â€nameâ€,â€indexâ€:â€nameâ€,â€widthâ€:160,â€editableâ€:true,â€edittypeâ€:â€textâ€,â€editoptionsâ€:{â€sizeâ€:â€75â€³,â€maxlengthâ€:â€250â€³},â€resizableâ€:true,â€hiddenâ€:true}</p>
<p>*********************</p>
<p>That is fine too as it is correctly stating that the column is now hidden.</p>
<p>But if I show the column and adjust the width manually (by dragging the separator bar) then the change is not being shown. If I drag / shrink / expand the name column on screen the width is always showing as</p>
<p>*********************</p>
<p>â€œwidthâ€:160</p>
<p>*********************</p>
<p>Should not this change as I change the column width on screen?</p>
]]></description>
        	        	<pubDate>Sun, 26 Oct 2008 09:09:29 +0200</pubDate>
        </item>
        <item>
        	<title>Larry D on Saving Grid Settings on the Server</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/saving-grid-settings-on-the-server#p2704</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/saving-grid-settings-on-the-server#p2704</guid>
        	        	<description><![CDATA[<p>Thanks for the pointers tony. I am now using JSON.stringify to convert the js object into text.</p>
<p>*********************</p>
<p>    loadComplete: function() {<br />
	jQuery('#a_all').setSelection('1');<br />
	gridParam = JSON.stringify($("#a_all").getGridParam());<br />
	alert(gridParam);<br />
	}</p>
<p>*********************</p>
<p>What that does is alert a huge text file of all the grid settings. Is it possible to just get the settings for the columns?</p>
<p>The documentation only shows selective options for</p>
<p>â€œurlâ€<br />
â€œsortnameâ€<br />
â€œsortorderâ€<br />
â€œselrowâ€<br />
â€œpageâ€<br />
â€œrowNumâ€<br />
â€œdatatypeâ€<br />
â€œrecordsâ€<br />
â€œselarrowâ€</p>
]]></description>
        	        	<pubDate>Sun, 26 Oct 2008 08:54:04 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Saving Grid Settings on the Server</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/saving-grid-settings-on-the-server#p2679</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/saving-grid-settings-on-the-server#p2679</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Yes I&#39;m just succesed with some new features. See roadmap.</p>
<p>Now I discover the problem with the pager. To resolve this</p>
<p>do not use</p>
<p>pager : jQuery("#mypager")</p>
<p>but just</p>
<p>pager : "mypager"</p>
<p>It will work.</p>
<p>For now you can use some like stringify function (just google it)</p>
<p>to convert the array to string.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 25 Oct 2008 06:29:49 +0300</pubDate>
        </item>
        <item>
        	<title>Larry D on Saving Grid Settings on the Server</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/saving-grid-settings-on-the-server#p2649</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/saving-grid-settings-on-the-server#p2649</guid>
        	        	<description><![CDATA[<p>tony is there any progress on this?</p>
<p>In the meantime how can I save and load the grid parameters for just the columns?</p>
<p>I am using the setcolumns js which works great but the info is lost when the page is reloaded. I am also changing the column widths but this info is also lost on page reload.</p>
<p>what getgridparam do I need to use to get that info?</p>
<p>currently the documentation only shows:</p>
<p>â€œurlâ€<br />
â€œsortnameâ€<br />
â€œsortorderâ€<br />
â€œselrowâ€<br />
â€œpageâ€<br />
â€œrowNumâ€<br />
â€œdatatypeâ€<br />
â€œrecordsâ€<br />
â€œselarrowâ€</p>
]]></description>
        	        	<pubDate>Wed, 22 Oct 2008 07:41:23 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Saving Grid Settings on the Server</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/saving-grid-settings-on-the-server#p2491</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/saving-grid-settings-on-the-server#p2491</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>At end of next week I will publish roadmap.</p>
<p>One of the priority task is to configure the grid from xml</p>
<p>and/or json data - that is - there will be import and export methods&#160;</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sun, 12 Oct 2008 11:19:00 +0300</pubDate>
        </item>
        <item>
        	<title>Larry D on Saving Grid Settings on the Server</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/saving-grid-settings-on-the-server#p2478</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/saving-grid-settings-on-the-server#p2478</guid>
        	        	<description><![CDATA[<p>I have seen the cookie method on how to save and retrieve grid settings. I would like to save the settings on the server, so that users who work on different PCs can take their settings with them.</p>
<p>I have a button which is used to save other stuff by passing variables to the php script:</p>
<p>******************</p>
<p>  jQuery(â€#a_todayâ€).setGridParam({url:â€/ajax/update_stuff.php?somestuff=â€+somestuff,page:1}).trigger(â€reloadGridâ€); </p>
<p>******************</p>
<p>How can I pass the grid params to the server?</p>
<p>******************</p>
<p>var gridparams = $(â€™#a_todayâ€™).getGridParam();</p>
<p>  jQuery(â€#a_todayâ€).setGridParam({url:â€/ajax/update_stuff.php?somestuff=â€+somestuff+â€™&#38;gridparams=â€™+gridparams,page:1}).trigger(â€reloadGridâ€); </p>
<p>******************</p>
<p>The problem is that gridparam is an object - and it is huge. If I dump the object I can see that it is thousands of characters. </p>
<p>Can I compress / encode it and then uncompress / de-encode when to be used to retrieve grid settings?</p>
<p>Or should I just save only the properties I wish to be saved such as column names, widths etc. getgridparam(columns, widthsâ€¦.</p>
]]></description>
        	        	<pubDate>Sat, 11 Oct 2008 06:02:24 +0300</pubDate>
        </item>
</channel>
</rss>