<?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: New Questions</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/new-questions</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/new-questions/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Larry D on New Questions</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/new-questions#p2141</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/new-questions#p2141</guid>
        	        	<description><![CDATA[<p>Thank you Tony. All answers worked well.</p>
]]></description>
        	        	<pubDate>Fri, 19 Sep 2008 15:40:31 +0300</pubDate>
        </item>
        <item>
        	<title>tony on New Questions</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/new-questions#p2062</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/new-questions#p2062</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Step by Step:</p>
<p>1. The expression $response-&#62;t_wins = $t_wins;&#160; is wrong.</p>
<p>The right is</p>
<p>$response-&#62;userdata = array(&#39;t_wins&#39;=&#62;$t_wins,...);</p>
<p>2. If every cell should have diffrent color this is the right way,</p>
<p>but it depend how many cells do you want to color. Of course if</p>
<p>they are too much I think the better way to do that is server side.</p>
<p>3. Set the option (as of the docs) height: &#39;100%&#39;, but I recommend</p>
<p>to use height:&#39;auto&#39; which work crossbrowser. The &#39;100%&#39; does not</p>
<p>work correct in Safari.</p>
<p>4. You are right about this, but we need in this case a cell editor.</p>
<p>This is not trivial work. If you use formedit I recomend you to add a</p>
<p>extra hidden column with the value of the link column. Make link column</p>
<p>not editable, but set for the hidden column: editrules:{edithidden:true}</p>
<p>If you use reloadAfterSubmit: false then you should manully update the</p>
<p>link column using maybe afterSubmit event.</p>
<p>Best Regards</p>
<p>Tony</p></p>
]]></description>
        	        	<pubDate>Wed, 17 Sep 2008 05:03:38 +0300</pubDate>
        </item>
        <item>
        	<title>Larry D on New Questions</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/new-questions#p2058</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/new-questions#p2058</guid>
        	        	<description><![CDATA[<p>Great grid Tony. I have configured the grid for an app pretty good but I have a few questions I can not find the answers to in the docs or here.</p>
<p><strong>1. Userdata Totals</strong><br />
Using the New in version 3.1, Toolbars and userdata example I am trying to use this with json.</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4973' value='Select Code' data-codeid='sfcode4973' /></p>
<div class='sfcode' id='sfcode4973'>loadComplete: function() { <br />    var udata = $(â€#a_allâ€).getUserData(); <br />    $(â€#t_a_allâ€).html(â€</p>
<div class="\\â€totals_r\\â€"><b>Totals</b> Wins:â€+udata.t_wins+â€   â€); <br />    }</div>
</div>
<p><input type='button' class='sfcodeselect' name='sfselectit5960' value='Select Code' data-codeid='sfcode5960' /></p>
<div class='sfcode' id='sfcode5960'>$response-&#62;page = $page;<br />$response-&#62;total = $total_pages;<br />
$response-&#62;records = $count;<br />
$response-&#62;t_wins = $t_wins;</div>
<p>This bulds the json string as:</p>
<p><span class="sfcode">{â€pageâ€:â€1â€³,â€totalâ€:3,â€recordsâ€:â€21â€³,â€t_winsâ€:â€3509â€³,â€¦..</span></p>
<p>But the totals bar shows: Totals Wins:undefined.</p>
<p>Is this a problem with my javascript or php?</p>
<p><strong>2. Change Cell Colors</strong><br />
I have successfully used the afterInsertRow:, setCell function to change the colors of cells. There are about 10 columns though and with a 10 row grid this is a lot of extra code.</p>
<p>I am wondering if this is efficient or if the cell coloring should be done on the php side and passed via the json string?</p>
<p>Note I canâ€™t use row coloring as cells can be different colors for each column.</p>
<p><strong>3. Dynamic Height of Grid</strong><br />
I have the following:</p>
<p><span class="sfcode">rowNum:10, rowList:[10,20,30], height:185,</span></p>
<p>This works fine as all 10 rows are shown with no scroll bars. If I change the rowlist on screen to 20 the grid stays the same size but adds scroll bars so that the full 20 rows can be seen. This scroll bar eats into screen real estate  so is it possible to dynamic change the height to 370 if 20 rows is selected?</p>
<p><strong>4. Links in Cell Breaks Edit</strong><br />
One of the column has clickable links so that users can go to a new page. This works in that clicking a cell will open the link but it breaks the editing. Rows with links in produce edit page:</p>
<p>Edit Record,  Submit Cancel</p>
<p>No data is displayed.</p>
<p>The json file is:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1462' value='Select Code' data-codeid='sfcode1462' /></p>
<div class='sfcode' id='sfcode1462'>â€œrowsâ€:[["&#60;<span class="start-tag">a</span><span class="attribute-name"> target</span>=<span class="attribute-value">\\"_BLANK\\" </span><span class="attribute-name">href</span>=<span class="attribute-value">\\"\\/widgets.php?stat=100&#38;name=</span><span class="attribute-name">Johnston</span><span class="attribute-name">&#38;valid</span>=<span class="attribute-value">3&#38;id=45714\\"</span>&#62;45714","Yes" ...</div>
<p>I tried wrapping in &#60;![CDATA[ ]] but that does then not render the column correctly.</p>
<p>TIA.</p>
]]></description>
        	        	<pubDate>Tue, 16 Sep 2008 16:17:49 +0300</pubDate>
        </item>
</channel>
</rss>