<?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: Inline Editing - Cancel row edit deletes the row?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/inline-editing-cancel-row-edit-deletes-the-row</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/inline-editing-cancel-row-edit-deletes-the-row/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Yaerox on Inline Editing - Cancel row edit deletes the row?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-editing-cancel-row-edit-deletes-the-row#p29882</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-editing-cancel-row-edit-deletes-the-row#p29882</guid>
        	        	<description><![CDATA[<p>Noone got any idea? Not even if this is the expected behaviour?</p>
]]></description>
        	        	<pubDate>Mon, 25 Nov 2013 09:41:58 +0200</pubDate>
        </item>
        <item>
        	<title>Yaerox on Inline Editing - Cancel row edit deletes the row?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-editing-cancel-row-edit-deletes-the-row#p29823</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-editing-cancel-row-edit-deletes-the-row#p29823</guid>
        	        	<description><![CDATA[<p>I actual got a problem with my jqGrid and I couldn&#39;t find any similar problem on the net.</p>
<p>Maybe I don&#39;t took the write tags for it, sorry tho.</p>
<p>Okay lets start talking about the real problem. I&#39;m using inline editing, and I customized the</p>
<p>buttons a bit. I wanna use "ENTER" and "ESC"-Keys as shortcuts. This works fine. I&#39;m manipulating the data in my grid local and only if the user is pressing a specialised button I&#39;ll</p>
<p>save the data in a file. This files are used to fill the grid too. So if the user now is editing any</p>
<p>row in the grid&#160;<strong>which isn&#39;t in my file yet, and he is canceling the editing by pressing</strong></p>
<p><strong> ESC, the complete row of data is getting deleted.</strong></p>
<p>Anyone who can help me out?</p>
</p>
<p>Thanks in advice. Regards.</p>
</p>
<p>#Edit: Edited a couple times to get a better look of the post. Sry for that.</p>
</p>
<p>My grid:</p>
<pre class="&#34;&#34;&#34;&#34;default&#34;&#34;&#34;"><div class="&#34;&#34;&#34;sfcode&#34;&#34;&#34;">// Table
        jQuery("#tbl").tableDnD({scrollAmount:0});       
        jQuery("#tbl").jqGrid({
            url:&#39;../path/to/my/script.pl&#39;, 
            datatype: "json", 
            postData:{&#39;art&#39;:&#39;empfang&#39;},
            jsonReader: {
                repeatitems: false
            },
            colNames:[&#39;1&#39;,&#39;2&#39;,&#39;3&#39;,&#39;4&#39;,&#39;5&#39;], 
            colModel:
            [ 
                {name:&#39;1&#39;,index:&#39;1&#39;, width:200, align:"left", sortable:true,editable:true,</div><div class="&#34;&#34;&#34;sfcode&#34;&#34;&#34;"> edittype:"text"},</div><div class="&#34;&#34;sfcode&#34;&#34;">                {name:&#39;2&#39;,index:&#39;2&#39;, width:200, align:"left", sortable:true,editable:true,</div><div class="&#34;&#34;sfcode&#34;&#34;"> edittype:"select",editoptions:{value:b}}, </div><div class="&#34;sfcode&#34;">                {name:&#39;3&#39;,index:&#39;3&#39;, width:200, align:"left", sortable:true,editable:true,</div><div class="&#34;sfcode&#34;"> edittype:"text"}, </div><div class="&#34;sfcode&#34;">                {name:&#39;4&#39;,index:&#39;4&#39;, width:220, align:"left", sortable:true,editable:true,</div><div class="&#34;sfcode&#34;"> edittype:"select",editoptions:{value:""}}, </div><div class="&#34;sfcode&#34;">                {name:&#39;5&#39;,index:&#39;5&#39;, width:200, align:"left",sortable:true,editable:true,</div><div class="&#34;sfcode&#34;"> edittype:"select",editoptions:{value:""}}</div><div class="&#34;sfcode&#34;">            ],  
            rowNum:2000, 
            rowTotal: 2000,
            loadtext: &#39;Reading data...&#39;,
            height: &#39;100%&#39;,
            width: &#39;100%&#39;,
            hidegrid: false,
            sortable: true,
            toppager: true,
            gridview: true, 
            viewrecords: true,
            rownumbers: true, 
            loadonce: true,
            editurl: &#39;dummy.php&#39;,
            pager: &#39;#tbl_toppager&#39;,
            loadComplete: function(data){
                $("#tbl").setColProp(&#39;4&#39;, { editoptions: { value: data.userdata.4} });
                $("#tbl").setColProp(&#39;5&#39;, { editoptions: { value: data.userdata.directory_listing} });
            },
            gridComplete: function() { 
                $("#_empty","#tbl").addClass("nodrag nodrop"); 
                jQuery("#tbl").tableDnDUpdate(); 
            },
            caption: "Testgrid",
            ondblClickRow: function(id){
                jQuery(&#39;#tbl&#39;).editRow(id, true); 
            }
        });     

        jQuery("#tbl").jqGrid(&#39;filterToolbar&#39;);
        jQuery("#tbl").jqGrid(
            &#39;navGrid&#39;,
            &#39;#tbl_toppager&#39;,
            {
                del: true,
                add: false,
                edit: false,
                refresh: false,
                search: true
            },
            {
            }, // edit options 
            {
            }, // add options 
            {
                reloadAfterSubmit: false,
                jqModal: true,
                closeOnEscape: true
            }, // del options 
            {
                jqModal: true,
                closeOnEscape: true
            } // search options 
        );
        jQuery("#tbl").jqGrid(
            &#39;inlineNav&#39;,
            &#39;#tbl_toppager&#39;, 
            {
                editParams: { keys: true },
                addParams: { addRowParams: { keys: true } }
            }
        ); // Inline Editing

        jQuery("#tbl_toppager_right").hide();
        jQuery("#tbl_toppager_center").hide();
        jQuery("#tbl").navSeparatorAdd(
            "#tbl_toppager_left",
            {
                sepclass : "ui-separator",
                sepcontent:""
            }
        ).jqGrid(
            &#39;navButtonAdd&#39;,
            &#39;#tbl_toppager_left&#39;,
            {
                caption: "",
                buttonicon: "ui-icon-document",
                title: "Save data in file",
                position: "last",
                onClickButton: function () {
                    $("#write_file").dialog(&#39;open&#39;);
                }
            }
        );</div></pre>
]]></description>
        	        	<pubDate>Mon, 11 Nov 2013 09:25:36 +0200</pubDate>
        </item>
</channel>
</rss>