QuadTable icon

QuadTable

The Advanced Javascript Grid!

Docs


//-----------------------------------
// API - CLASSIC METHOD
									
// GET ROW CONTENT
var p = {
	'tag': $itemDiv,
	//'bypassRowSearch': true
}	
var rowData = api.rowData( p );  // log( rowData ); STOP

//-----------------------------------
// MODIFICATION
rowData = {};
rowData.item = $itemDiv[0].innerText;
rowData.category = "CHANGED!";

//-----------------------------------
// SET ROW CONTENT
var p = 
{
	'tag': $itemDiv,		
	'rowData': rowData,
	'updateGUI': true, // [ "ord_item" ],
	'bypassRowSearch': false,										
}									
var ret = api.rowData( p );

if( !p.updateGUI ) $itemDiv[0].innerText = itemDivRestoreText;

if( !ret ) { alert("Error in Modification!"); return; }