Source File: [edited]/dhtmlx/dhtmlx.js Line: 6179
Any ideas on this error? it is generated when trying to sort column 2. Col 0 is subrow, Col 1 is string and sorts fine. This error is generated trying to sort the int column 2 (third column). none of the columns beyond 2 sort either and all generate the error except for col 1.
grid JS:
-------------------------------------------------------------------------------------------------------------------------------------
var mygrid = new dhtmlXGridObject(‘gridbox’);
mygrid.setHeader(" #, Client Name, Amount, Received, Lender");
mygrid.setColTypes(“sub_row_ajax,ro, price, ro, ro,ro”);
mygrid.setInitWidths(“40,,,,”)
//mygrid.enablePaging(true, 10, 1, “pagingArea”, true, “recinfoArea”);
mygrid.setSkin(‘light’);
mygrid.setColSorting(“int,str,int,str,str”);
mygrid.init();
mygrid.enableSmartRendering(true);
mygrid.attachHeader(“Filter by:
,#cspan,Mortgage number:
,Date range:
to
//mygrid.enableHeaderMenu();
mygrid.loadXML(receiptDataUrl);
------------------------------------------------------------------------------------------------------------------------------------
xml generating code:
header(‘Content-type: text/xml’);
$resultXML = "
";
foreach ($results as $result) {
$resultXML .= "
<row id=’{$result[‘id’]}’>
{$result[‘client_name’]}
{$result[‘amount’]}
{$result[‘received’]}
{$result[‘received_from’]}
";
}
$resultXML .= "
";
echo $resultXML;
Actual XML generated (2 rows only)
-------------------------------------------------------------------------------------------------------------
−
−
index2.php?option=com_payroll&task=payrollGetDisbursementsSubGrid&receiptId=1
Jerry Test
1500
2009-12-22
First National
−
−
index2.php?option=com_payroll&task=payrollGetDisbursementsSubGrid&receiptId=2
Test
300
2009-12-22
Firstline