Jqxgrid Select the Last Inserted Row

From NSB App Studio
Revision as of 01:35, 23 December 2014 by Kaplanerkan (talk | contribs) (Created page with "== Select always last insertet Last ROW == <pre> Function Button6_onclick() Rem Data Insert data={nummer: "132", _ beschreibung: "Gekochte Ente mit Portugal", _...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Select always last insertet Last ROW


Function Button6_onclick()
Rem Data Insert
   data={nummer: "132", _
         beschreibung: "Gekochte Ente mit Portugal", _
         price: 1.95, _
         total: 3.85, _
         eksi: "-", _
         anz: "1", _
         arti: "+" _
         }
  value=$("#Grid1").jqxGrid("addrow",null,data)
  
Rem Select Last insertet Row
  var rows = $("#Grid1").jqxGrid("getrows");
  $("#Grid1").jqxGrid("selectrow",rows.length-1 );
  $("#Grid1").jqxGrid("ensurerowvisible",rows.length-1);             


End Function