Here's my onSelectRow:
|
1 2 3 4 |
<span class="sfcode">onSelectRow: function(id){</span><span class="sfcode"><br />if(id && id!==lastsel){ </span><br /><span class="sfcode"><br /><span style="white-space: pre;"> </span>$.post("edit.file", { oper:"chk" }, function(response){processResponse(response);});</span><br /> <br /><span class="sfcode"><span style="white-space: pre;"> </span>jQuery('#list').restoreRow(lastsel);</span><br /> <br /><span class="sfcode"><span style="white-space: pre;"> </span>lastsel=id;</span><span class="sfcode">}</span><br /> <br /><span class="sfcode"><strong>jQuery('#list').editRow(id, true, null, null, null, null, <span style="color: #0000ff;">onSave(id)</span>, null) </strong></span><span class="sfcode">}</span> |
Problem:
My onSave function fires when I select the Row, not when I hit [Enter] to Save the row.
Why?
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top