anchor.diff:          <div id="dtable"></div>
   
           <div class="ba_content">
  -            <button id="btnSelected" class="yui3-button">Save Selections</button>
  +            <button id="btnSave" class="yui3-button">Save Selections</button>
  +            <button id="btnInsert" class="yui3-button">Insert New Row</button>
  +            <button id="btnDelete" class="yui3-button">Delete Selections</button>
           </div>
           <script src="http://yui.yahooapis.com/3.10.3/build/yui/yui-min.js"></script>
   
  
positive.code:                 
                  
                  
                  Y.one("#btnSelected").on("click", function(){
                      var recs = table.get('checkboxSelected');
                      process(recs);
                  });
                  
                  
                  function process(recs) {
                      var msg       = '',
                      msgNumOff = '<li>({numOff} records selected are off of the current page)</li>',
                      numOff    = 0,
                      template  = '<li>Record index = {index} Data = {port} : {pname}</li>';
  
                      // Loop thru returned records,
                      // for records "off current page" they will have no TR or Record setting, but will have pkvalues set.
                      Y.Array.each(recs,function (r) {
                          if(r.tr) {
                              var data    = r.record.getAttrs(['select', 'port', 'pname']),
                              recindx = table.data.indexOf(r.record);
  
                              data.index = recindx;
                              msg += Y.Lang.sub(template, data);
                          } else
                              numOff++;
                      },table);
                  }
              
              });
          </script>
  
  
negative.code:                     columns:	cols,
                      data:		ds,
                      checkboxSelectMode:   true,
                      sortable:  true,
                      editable:       true,
                      editOpenType:   'click',
                      defaultEditor:  'text',
                      primaryKeys: ['ID']
                  });
                  
                  
  