Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>What information do you allready have about the row.</p> <p>Do you have the row id? Or the value of the field that is marked as the key?</p> <p>It creates the row as defined like this. Notice that the id of the row is the same as the key value.</p> <pre><code>&lt;TR id=11 class="ui-widget-content jqgrow ui-row-ltr ui-state-highlight" role=row aria-selected=true&gt;&lt;TD title=11 role=gridcell aria-describedby=list2_id&gt;11&lt;/TD&gt;&lt;TD title=2007-10-06 role=gridcell aria-describedby=list2_invdate&gt;2007-10-06&lt;/TD&gt;&lt;TD title="Client 1" role=gridcell aria-describedby=list2_name&gt;Client 1&lt;/TD&gt;&lt;TD style="TEXT-ALIGN: right" title=600.00 role=gridcell aria-describedby=list2_amount&gt;600.00&lt;/TD&gt;&lt;TD style="TEXT-ALIGN: right" title=120.00 role=gridcell aria-describedby=list2_tax&gt;120.00&lt;/TD&gt;&lt;TD style="TEXT-ALIGN: right" title=720.00 role=gridcell aria-describedby=list2_total&gt;720.00&lt;/TD&gt;&lt;TD title="" role=gridcell aria-describedby=list2_note&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt; </code></pre> <p>So then you could just do.</p> <pre><code>$("#tblselector).find("#+KeyValue").addClass("ui-state-highlight") </code></pre> <p>It realy depends on how the row is being added. You could use the afterInsertRow event but this would fire for each row as it is added to the grid. In addition there is this note on the event.</p> <blockquote> <p>Note: this event does not fire if gridview option is set to true</p> </blockquote> <p>I do not suggest changing the gridview option to false if you are returning a lot of rows and or columns as it will have a big performance impact.</p> <p>I would have asked for clarification on how the row is being added but dont have enough points for comments.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload