<?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: Custom Adding/Editing</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/custom-addingediting</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/custom-addingediting/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>kweles on Custom Adding/Editing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-addingediting#p17454</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-addingediting#p17454</guid>
        	        	<description><![CDATA[<p>Yes i realize the complete validation.</p>
</p>
<p>Friend, i found the example, that solve my needed, Thank you for his help:</p>
<p>My really needed was call a form with jquery dialog, in this way, the code below soved my problem!</p>
</p>
<p>Javascricpt:</p>
<p>&#160;&#160;&#160;&#160;&#160; <strong>function</strong> formOpen() {</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#dialog").dialog();</p>
<p>&#160;&#160;&#160;&#160;&#160; }</p>
</p>
<p>HTML</p>
</p>
<p>No HTML, basta colocar uma div e o q estiver dentro dela vai para a dialog:</p>
</p>
<p>&#60;div id=<em>"dialog"</em> title=<em>"Basic dialog"</em>&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160; &#60;div&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160; &#60;b&#62;<span style="text-decoration: underline;">Dados</span> do <span style="text-decoration: underline;">Cliente</span>:&#60;/b&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160; &#60;/div&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160; &#60;br&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160; &#60;s:div&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;table width=<em>"960"</em> border=<em>"1"</em> bordercolor=<em>"white"</em> &#62;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160; &#60;tr&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160; &#60;td width=<em>"84"</em>&#62;&#38;nbsp;<span style="text-decoration: underline;">Nome</span>&#60;/td&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160; &#160;&#160; &#60;td width=<em>"347"</em>&#62;&#60;input name=<em>"nome"</em> type=<em>"text"</em> id=<em>"nome"</em> style=<em>"width:100%"</em> /&#62;&#60;/td&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#60;td width=<em>"74"</em>&#62;&#38;nbsp;<span style="text-decoration: underline;">Sobrenome</span> &#60;/td&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#60;td width=<em>"360"</em>&#62; &#60;input name=<em>"sobrenome"</em> type=<em>"text"</em> id=<em>"sobrenome"</em> style=<em>"width:60%"</em> /&#62; <span style="text-decoration: underline;">Apelido</span> &#60;input name=<em>"apelido"</em> type=<em>"text"</em> id=<em>"apelido"</em> style=<em>"width:23%"</em>&#160; /&#62;&#160; &#60;/td&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160; &#60;/tr&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160; &#60;tr&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#60;td&#62;&#38;nbsp;<span style="text-decoration: underline;">Personalizado</span>&#60;/td&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#60;td&#62;&#60;input name=<em>"nomeabreviado"</em> type=<em>"text"</em> id=<em>"nomeabreviado"</em> style=<em>"width:100%"</em> /&#62;&#60;/td&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#60;td&#62;&#38;nbsp;Email&#60;/td&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#60;td&#62;&#60;input name=<em>"email"</em> type=<em>"text"</em> id=<em>"email"</em> style=<em>"width:100%"</em>&#160; /&#62;&#60;/td&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160; &#60;/tr&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160; &#60;tr&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#60;td&#62;&#38;nbsp;CPF&#60;/td&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#60;td&#62;&#60;input name=<em>"cpf"</em> type=<em>"text"</em> id=<em>"scpf"</em> style=<em>"width:42%"</em> /&#62;&#38;nbsp;CNPJ &#60;input name=<em>"cnpj"</em> type=<em>"text"</em> id=<em>"scnpj"</em> style=<em>"width:44%"</em> /&#62; &#60;/td&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#60;td&#62;&#38;nbsp;Email <span style="text-decoration: underline;">Alt</span>.&#60;/td&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#60;td&#62;&#60;input name=<em>"emailaleternativo"</em> type=<em>"text"</em> id=<em>"emailaleternativo"</em> style=<em>"width:100%"</em>&#160; /&#62;&#60;/td&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160; &#60;/tr&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/table&#62;&#160;&#160;&#160;</p>
<p>&#160;&#160;&#160;&#160;&#160; &#60;/s:div&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160; &#60;br&#62;</p>
<p>&#60;/div&#62;</p>
<p>&#60;!&#8212;Chamada--&#62;</p>
</p>
<p>&#60;button id=<em>"add"</em> onclick="formOpen()" &#62;show&#60;/button&#62;</p></p>
]]></description>
        	        	<pubDate>Tue, 25 May 2010 20:39:26 +0300</pubDate>
        </item>
        <item>
        	<title>squid on Custom Adding/Editing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-addingediting#p17451</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-addingediting#p17451</guid>
        	        	<description><![CDATA[<p>And do you want jqGrid to manage it all for you or are you trying to do the complete form, validation, etc. by yourself?</p>
]]></description>
        	        	<pubDate>Tue, 25 May 2010 19:41:53 +0300</pubDate>
        </item>
        <item>
        	<title>kweles on Custom Adding/Editing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-addingediting#p17450</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-addingediting#p17450</guid>
        	        	<description><![CDATA[<p>i need to create a form like this below:</p>
<form id="order" style="width: 350px; margin: 0px;" method="post">
<fieldset>
<legend>Invoice Data</legend>
<table border="0">
<tbody>
<tr>
<td>Invice No:</td>
<td><input id="invid" name="id" readonly="readonly" type="text" /></td>
</tr>
<tr>
<td>Invice Date:</td>
<td><input name="invdate" type="text" /></td>
</tr>
<tr>
<td>Client</td>
<td><input name="name" type="text" /></td>
</tr>
<tr>
<td>Amount</td>
<td><input name="amount" type="text" /></td>
</tr>
<tr>
<td>Tax</td>
<td><input name="tax" type="text" /></td>
</tr>
<tr>
<td>Total</td>
<td><input name="total" type="text" /></td>
</tr>
<tr>
<td>Note</td>
<td><input name="note" type="text" /></td>
</tr>
<tr>
<td>&#160;</td>
<td><input id="savedata" type="button" value="Save" /></td>
</tr>
</tbody>
</table>
</fieldset>
</form>
<p>And now, i want call it with dialog! &#160;like jqgrid makes with edit and view data in dialog!</p>
<p>Bu i don&#180;t know make this!</p></p>
]]></description>
        	        	<pubDate>Tue, 25 May 2010 19:31:45 +0300</pubDate>
        </item>
        <item>
        	<title>squid on Custom Adding/Editing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-addingediting#p17448</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-addingediting#p17448</guid>
        	        	<description><![CDATA[<p>Help you what, create a dialog?</p>
]]></description>
        	        	<pubDate>Tue, 25 May 2010 17:04:17 +0300</pubDate>
        </item>
        <item>
        	<title>kweles on Custom Adding/Editing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-addingediting#p17447</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-addingediting#p17447</guid>
        	        	<description><![CDATA[<p>Hi squid.</p>
</p>
<p>I need create my own form like too, for adding and saving data and i need call with dialog.</p>
<p>How do you make this?</p>
<p>Could you help me?</p>
</p>
<p>Thanks!</p></p>
]]></description>
        	        	<pubDate>Tue, 25 May 2010 16:48:37 +0300</pubDate>
        </item>
        <item>
        	<title>squid on Custom Adding/Editing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-addingediting#p17314</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-addingediting#p17314</guid>
        	        	<description><![CDATA[<p>Found it <img class="wp-smiley" src="/blog/wp-includes/images/smilies/icon_smile.gif" alt=":)" /> . &#160;Was my fault. &#160;I use the ClueTip jquery Add on and was hiding all spans with a title prior to editing the form. &#160;This was causing the span that has the title in the jqGrid to be hidden (but only the 2nd time because there&#39;s no title when it&#39;s first set). &#160;Anyhow, problem soved <img class="wp-smiley" src="/blog/wp-includes/images/smilies/icon_smile.gif" alt=":)" /> .</p>
<p>I guess sometimes it just helps to talk through a problem by yourself to diagnose the issues!</p>
<p>Back to the grindstone!</p>
</p>
<p>I guess my only other question was related to why the Title of the span is changed to the new value, but the contents of the span retain its original value (or so this is how it seems to react). &#160;After I change the value of the cell, the displayed value is always correct. &#160;However, when I hover OVER the cell, I see its original value in the hover tip. &#160;I&#39;ll continue looking at my code to see if this is, once again, a bug in my code. &#160;I verified that the non-tree demo works as expected, so I&#39;m guessing it&#39;s my code.</p>
]]></description>
        	        	<pubDate>Wed, 19 May 2010 20:34:36 +0300</pubDate>
        </item>
        <item>
        	<title>squid on Custom Adding/Editing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-addingediting#p17312</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-addingediting#p17312</guid>
        	        	<description><![CDATA[<p>Ok, one last post... maybe :).</p>
</p>
<p>This is what the item in the tree looks like before I edit it:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3038' value='Select Code' data-codeid='sfcode3038' /></p>
<div class='sfcode' id='sfcode3038'>&#60;span&#62;Another Title&#60;/span&#62;</div>
<p>I edit it and change the words "Another Title" to "Changed Title" and now the same element looks like:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7657' value='Select Code' data-codeid='sfcode7657' /></p>
<div class='sfcode' id='sfcode7657'>&#60;span title=&#34;Changed Title&#34;&#62;Another Title&#60;/span&#62;</div>
<p>When I edit it again, even BEFORE I actually perform the edit, it gets changed to:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9821' value='Select Code' data-codeid='sfcode9821' /></p>
<div class='sfcode' id='sfcode9821'>&#60;span title=&#34;Changed Title&#34; style=&#34;visibility: hidden;&#34;&#62;Another Title&#60;/span&#62;</div>
<p>Am I missing something here?</p>
]]></description>
        	        	<pubDate>Wed, 19 May 2010 20:29:53 +0300</pubDate>
        </item>
        <item>
        	<title>squid on Custom Adding/Editing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-addingediting#p17311</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-addingediting#p17311</guid>
        	        	<description><![CDATA[<p>So I made a few changes to my code and started using &#39;FormToGrid.&#39; &#160;It seemed to work well, with one oddity. &#160;When I edit an item, and then call &#39;FormToGrid&#39; everything works properly. &#160;However, when I edit an item the 2nd time, one of the columns gets cleared completely before I even save the data (i.e. the form comes up but the element in the grid gets cleared as soon as the form is displayed). &#160;I&#39;m wondering if this is a bug in the code related to TreeGrid style grids because the column that gets cleared is the column where the tree icon is displayed (the little arrow/circle). &#160;I was going through setRowData and saw this piece of code:</p>
<p><span style="font-family: monospace;">vl = t.formatter( rowid, data[nm], i, data, &#39;edit&#39;);<br /></span><span style="font-family: monospace;">title = this.title ? {"title":$.jgrid.stripHtml(vl)} : {}; <br />if(t.p.treeGrid===true &#38;&#38; nm == t.p.ExpandColumn) { <br />&#160;&#160;$("td:eq("+i+") &#62; span:first",ind).html(vl).attr(title); <br />} else { <br />&#160;&#160;$("td:eq("+i+")",ind).html(vl).attr(title); <br /> }</span></p>
<p>and I am wondering if this might have something to do with it. &#160;Seeing as I&#39;ve only been using jqGrid for one day, I&#39;m a noob here so this may just be grasping at straws.</p>
]]></description>
        	        	<pubDate>Wed, 19 May 2010 19:58:21 +0300</pubDate>
        </item>
        <item>
        	<title>squid on Custom Adding/Editing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-addingediting#p17304</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-addingediting#p17304</guid>
        	        	<description><![CDATA[<p>I&#39;m going to reply to my own post here. &#160;I noticed a function called "setRowData" that I think can be used for this so I&#39;ll be exploring that avenue. &#160;If anyone has any useful tips about using this method, please post them :).</p>
</p>
<p>Thanks again.</p>
]]></description>
        	        	<pubDate>Wed, 19 May 2010 16:50:36 +0300</pubDate>
        </item>
        <item>
        	<title>squid on Custom Adding/Editing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-addingediting#p17301</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-addingediting#p17301</guid>
        	        	<description><![CDATA[<p>Hello. &#160;First off let me state that I&#39;m really like jqGrid. &#160;Very nice features and reasonably good docs on the Wiki.</p>
</p>
<p>I&#39;m building an application that uses jqGrid and I&#39;ve written my own custom form for editing data. &#160;Everything is working fine but now I&#39;m to the point where I need to update the grid once the data has been saved.</p>
</p>
<p>I&#39;d like to only update the SINGLE row that gets added, or edited, but as I&#39;ve done my own custom dialog (it is a jQuery Dialog, btw), I am not sure what functions I need to call to update the grid with the modified data. &#160;Is there any way to achieve this or do I have to just trigger the entire grid to reload?</p>
</p>
<p>Thanks in advance.</p>
]]></description>
        	        	<pubDate>Wed, 19 May 2010 16:13:41 +0300</pubDate>
        </item>
</channel>
</rss>