<?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: gtting cell data on selectRow..</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/gtting-cell-data-on-selectrow</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/gtting-cell-data-on-selectrow/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Jelgab on gtting cell data on selectRow..</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/gtting-cell-data-on-selectrow#p28500</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/gtting-cell-data-on-selectrow#p28500</guid>
        	        	<description><![CDATA[<p>In my case I needed the value of the cell during a row select event. I was also getting all that HTML mentioned in red but I was able to move move my code BEFORE I moved the row to edit mode. My code to get the cell value is:</p>
</p>
<p>grid.jqGrid("getCell", id, 1) //id is the id assigned to the row. 1 is the number of the column where the value is</p>
</p>
<p>All code:</p>
<p>Markup: &#60;ClientSideEvents RowSelect = "editRow" /&#62;</p>
<p>Script:</p>
<p>var lastSelection;</p>
<p>function editRow(id) {</p>
<p>&#160; &#160;if (id &#38;&#38; id !== lastSelection) {</p>
<p>&#160; &#160; &#160; var grid = jQuery("#myJQGridID");</p>
<p>&#160; &#160; &#160; theCellValue = grid.jqGrid("getCell", id, 1);</p>
<p>&#160; &#160; &#160; //First got the value. Now move to inline edit:</p>
<p>&#160; &#160; &#160; grid.editRow(id, true);</p>
<p>&#160; &#160; &#160; lastSelection = id;</p>
<p>&#160; &#160;}</p>
<p>}</p>
</p>
<p>Fot others, maybe this little hack may work: 1. Temporarily get out of edit mode, 2. Get the cell value, 3. Move back to edit mode.</p>
]]></description>
        	        	<pubDate>Thu, 21 Mar 2013 22:03:38 +0200</pubDate>
        </item>
        <item>
        	<title>unknown on gtting cell data on selectRow..</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/gtting-cell-data-on-selectrow#p16432</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/gtting-cell-data-on-selectrow#p16432</guid>
        	        	<description><![CDATA[<p>Hi again,</p>
</p>
<p>so I try a little bit to fix the problems with 2 Editing-Mods. If my Form is created I do the following in afterShowForm to get the right value from the Inline-Form:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit334' value='Select Code' data-codeid='sfcode334' /></p>
<div class='sfcode' id='sfcode334'>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var val = $(\&#34;.edit-cell\&#34;).attr(&#39;title&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#34;.edit-cell&#34;).html(val);</div>
</p>
<p>But I didn&#39;t understand if I want the faild Input-Element, if I clicked on Change-Button, and the Inline-Edit-Cell is active to get the right value. In my case it is the Column BV_MENGE:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7969' value='Select Code' data-codeid='sfcode7969' /></p>
<div class='sfcode' id='sfcode7969'>$(&#34;#tr_BV_MENGE td:nth-child(2)&#34;)</div>
</p>
<p>In this case I saw the Input-Html-Element but not the value that is in the Inline-Edit-Cell that is in the .edit-cell Element.</p>
</p>
<p>Greetings from Germany</p>
</p>
<p>Henning</p>
]]></description>
        	        	<pubDate>Thu, 15 Apr 2010 15:46:30 +0300</pubDate>
        </item>
        <item>
        	<title>unknown on gtting cell data on selectRow..</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/gtting-cell-data-on-selectrow#p16427</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/gtting-cell-data-on-selectrow#p16427</guid>
        	        	<description><![CDATA[<p>Hi guys,</p>
</p>
<p>I have nearly the same problem. I have a JQGrid where you can change a field in Cell Editing Mode. All is working fine. If a user now change the value in inline mode and take a click on the change button on the table (for Formediting-Mode), getRowData gave me (yes I know it stands in the documentation) the html input field. But what alternative I have?</p>
<p>Additionaly if a user change in celleditingmode the value and click an another row or cell that is not editable I want to display the new value in a html div block out of the jqgrid. So I have two functions formatCell and onSelectCell. Both do the same take the getRowData and display it in the div block. Same Problem I know the documentation but what is the alternative? If I use a hidden value the value would not be updated.</p>
</p>
<p>Any ideas Tony? Is there a changse to do something like Column-Editing to make a column editable? So I can ignore the div-block and the form-editing.</p>
</p>
<p>Greetings from Germany</p>
</p>
<p>Henning</p></p>
]]></description>
        	        	<pubDate>Thu, 15 Apr 2010 12:15:57 +0300</pubDate>
        </item>
        <item>
        	<title>tony on gtting cell data on selectRow..</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/gtting-cell-data-on-selectrow#p16405</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/gtting-cell-data-on-selectrow#p16405</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>For me will be quiete easy if you explain me what you want to do.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 14 Apr 2010 20:00:53 +0300</pubDate>
        </item>
        <item>
        	<title>mikesmith on gtting cell data on selectRow..</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/gtting-cell-data-on-selectrow#p16327</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/gtting-cell-data-on-selectrow#p16327</guid>
        	        	<description><![CDATA[<p>Hi Tony</p>
<p>So How do I get data value from a row that is selected then when I have a column with a dot Notation?</p>
<p>surely it must be possible</p>
]]></description>
        	        	<pubDate>Fri, 09 Apr 2010 14:13:10 +0300</pubDate>
        </item>
        <item>
        	<title>tony on gtting cell data on selectRow..</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/gtting-cell-data-on-selectrow#p16306</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/gtting-cell-data-on-selectrow#p16306</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>If you look at you first post there is a text with red. This is what we mean .</p>
</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Thu, 08 Apr 2010 13:49:46 +0300</pubDate>
        </item>
        <item>
        	<title>mikesmith on gtting cell data on selectRow..</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/gtting-cell-data-on-selectrow#p16272</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/gtting-cell-data-on-selectrow#p16272</guid>
        	        	<description><![CDATA[<p>I tried your suggestion with another grid and what is alerted is not the data value but the actual make up for the cell contents</p>
</p>
<p>var cellValue = rowData["documentDistributor.companyName"];</p>
<p>alert(cellValue)... shows.....</p>
<p>&#60;input class="editable" name="documentDistributor.companyName" id="2_documentDistributor.companyName" maxlength="50" size="50" type="text"&#62;</p>
</p>
<p>any further suggestion? :-)...&#160; Its driving me nuts!..</p></p>
]]></description>
        	        	<pubDate>Wed, 07 Apr 2010 00:45:46 +0300</pubDate>
        </item>
        <item>
        	<title>tony on gtting cell data on selectRow..</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/gtting-cell-data-on-selectrow#p16178</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/gtting-cell-data-on-selectrow#p16178</guid>
        	        	<description><![CDATA[<p>Hello</p>
<p>Try to obtain the value this way</p>
<p>var cellValueRfiNo = rowData["rfiLog.rfiNumber"];</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 03 Apr 2010 13:09:17 +0300</pubDate>
        </item>
        <item>
        	<title>mikesmith on gtting cell data on selectRow..</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/gtting-cell-data-on-selectrow#p15928</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/gtting-cell-data-on-selectrow#p15928</guid>
        	        	<description><![CDATA[<p>Sometimes when I use console.log I get an error saying: console is not define. anyone know why?</p>
<p>However sometimes it does work.</p>
<p>When I console.log(rowData).. I get as follows for my columns..</p>
<p>genericLogDocument.description&#160;&#160; &#160;"my description"<br />genericLogDocument.genericNumber "190"<br />rn "1"</p>
</p>
<p>When I console.log(rowData.genericLogDocument.genericNumber); I get this error: rowData.genericLogDocument is undefined</p>
<p>However if I console.log(rn) It prints out correctly .. in this case as 1.</p>
</p>
<p>It seems that the columns that are defined with a name like in this case genericLogDocument.genericNumber</p>
<p>&#160;&#160;&#160; &#60;sj:gridColumn name="genericLogDocument.genericNumber" index="genericLogDocumentNumberHeader"</p>
<p>I can!t get the value.</p>
</p>
<p>GenericLogDocument is an object which has an attribute genericNumber.&#160; &#160;&#160; &#160;&#160;</p>
</p>
<p>any thoughts on this? Thanks.</p>
]]></description>
        	        	<pubDate>Wed, 24 Mar 2010 22:49:59 +0200</pubDate>
        </item>
        <item>
        	<title>tony on gtting cell data on selectRow..</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/gtting-cell-data-on-selectrow#p15719</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/gtting-cell-data-on-selectrow#p15719</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Could you please post the colModel, or better the entrie grid configuration.</p>
<p>Using FireBug you can easy determine what you have in rowData , just put this</p>
<p>console.log(rowData);</p>
<p>after the call and just look into the console how your rowData look.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 15 Mar 2010 20:06:01 +0200</pubDate>
        </item>
        <item>
        	<title>mikesmith on gtting cell data on selectRow..</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/gtting-cell-data-on-selectrow#p15578</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/gtting-cell-data-on-selectrow#p15578</guid>
        	        	<description><![CDATA[<p>Hi</p>
<p>On selectRow, i want to get the value of a certain column in that row<strong> only&#160;when the row is selected</strong> and use thatvalue to update another element.</p>
<p>As stated in the wiki /jqgridwiki/doku.php?id=wiki:methods</p>
<p>It urges you not to use getCell or getRowData as that does not return the value:</p>
<p><span style="color: #ff0000;">Do not use this method when you editing the row or cell. This will return the cell content and not the actuall value of the input element.</span></p>
<p><span style="color: #000000;">So What are my options for getting this to work?</span></p>
<p>I was thinking about&#160;</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1647' value='Select Code' data-codeid='sfcode1647' /></p>
<div class='sfcode' id='sfcode1647'>
<p>var id = jQuery(&#34;#&#34;+gridName).jqGrid(&#39;getGridParam&#39;,&#39;selrow&#39;);</p>
<p>var rowData = jQuery(&#34;#&#34;+gridName).jqGrid(&#39;getRowData&#39;,id);//data of the row</p>
<p>var cellValueRfiNo = rowData.rfiLog.rfiNumbe<span style=&#34;text-decoration: underline;&#34;>r</span></p>
<p><span style=&#34;text-decoration: underline;&#34;>&#160;</span></p>
</div>
<p>But this doesnt work! (my column name is rfiLog.rfiNumber)</p>
</p>
<p>any ideas? thanks!</p>
]]></description>
        	        	<pubDate>Wed, 10 Mar 2010 14:02:17 +0200</pubDate>
        </item>
</channel>
</rss>