
Matt Jacobson-Carroll - 2008-12-17 20:23:55
I saw that checkboxes are created by making the column a tinyint, and I did that. But when I put a check in the checkbox the data is not updated in the mysql database.
BTW, I am very new to this, so if I have done something stupid, please be gentle.
function rebuild_table() {
if (thegrid) $('grid1').empty();
thegrid = new drasticGrid('grid1', {
pathimg:"img/",
pagelength:30,
columns: [
{name: 'select', width: 40},
{name: 'HID', width: 40, displayname: 'HIP #'},
{name: 'Status'},
{name: 'Type'},
{name: 'Brand'},
{name: 'Model', width: 180},
{name: 'Serial_Num', width: 120, displayname: 'SN'},
{name: 'Location', width: 150},
{name: 'Sub_Location', width: 100, displayname: 'Sub Location'},
{name: 'Desc1'},
{name: 'Desc2'},
{name: 'Date_Added', width: 100, displayname: 'Date Acquired'},
{name: 'Original_Cost', width: 100, displayname: 'Original Cost'},
],
addparams:"&Type="+typeselector.value+"&Location="+delocation.value+"&Status="+destatus.value+"&Brand="+debrand.value
});
}