jQWidgets Forums
jQuery UI Widgets › Forums › Grid › Uncaught TypeError: Cannot call method 'toString' of null
This topic contains 2 replies, has 2 voices, and was last updated by zack.wd 11 years, 4 months ago.
-
Author
-
Uncaught TypeError: Cannot call method ‘toString’ of null – I get this error while i enter data in the filterable row to search for invoice no in the grid.I can search for gino without any problem,invoice no column gives me the above error?
`var source =
{
datatype: “json”,
datafields: [
// { name: ‘slno’},
{ name: ‘invoiceno’},
{ name: ‘invoicedate’,type:’date’,format:’dd/MM/yyyy’},
{ name: ‘suppliername’},
{ name: ‘suppliercode’},
{ name: ‘gino’},
{ name: ‘amount’},
{ name: ‘voucher’},
{ name: ‘branch’}]
, url : ‘<?php echo base_url() ; ?>index.php/inventory/indata’
};var dataAdapter = new $.jqx.dataAdapter(source, {
downloadComplete: function (data, status, xhr) { },
loadComplete: function (data) {},
loadError: function (xhr, status, error) { }
});$(“#approval_grid”).jqxGrid(
{
source: dataAdapter,
theme: ‘classic’,
width:950,
height:400,
altrows: true,
autoheight: true,
autowidth: true,
sortable: true,
editable:true,
showfilterrow: true,
filterable: true,
pageable: true,
//groupable:true,
selectionmode: ‘none’,
columns: [
//{ text: ”, datafield: ‘available’,filterable:false, columntype: ‘checkbox’, width: 30 },
{ text: ‘Invoice No’,editable: false, datafield:’invoiceno’, width: 100,filterable:true},
{ text: ‘Invoice Date’,editable: false, datafield: ‘invoicedate’, width: 100,filterable:false,cellsformat:’dd-MM-yyyy’},
{ text: ‘GINO’,editable: false,datafield:’gino’,width:100},
{ text: ‘Supplier Name’,editable: false, datafield: ‘suppliername’, width:155,filterable:false},
{ text: ‘Supplier Code’,filterable:false,editable: false, datafield: ‘suppliercode’, width:20},
{ text: ‘Amount’,filterable:false,editable: false,datafield:’amount’,width:100,cellsalign: ‘right’},
{ text: ‘Voucher’,filterable:false,editable: false,datafield:’voucher’,width:90},
{ text: ‘Branch’, editable: false,filterable:false,datafield: ‘branch’, width: 125,cellsalign: ‘left’},
// { text: ‘Approve’,filterable:false, editable: false,datafield: ‘width’, width: 75,cellsalign: ‘right’},
{ text: ‘ ‘, columntype: ‘button’,value:’Enter Data’,filterable:false, datafield: ‘Approve’,
cellsrenderer: function () {return “Approve”;
},
buttonclick: function (row) {
datarow = row;
var dataRecord = $(“#approval_grid”).jqxGrid(‘getrowdata’, datarow);
var gino=dataRecord.gino;
var branch=dataRecord.branch;
var invoiceno=dataRecord.invoiceno;
window.location=”invoiceapprovalform?gino=”+gino+”&invoiceno=”+invoiceno+”&branch=”+branch;}
}
]
});Hi zack.wd,
Thanks for the feedback, but I am afraid that we are unable to reproduce such issue with the current version. If you provide a sample which we can test locally and demonstrates your scenario, we will test it.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/Hi Peter,
I am using version jquery-ui-1.8.17. and also got it solved when i added – type:”string” in the source of the invoice no..Thnx for the help. -
AuthorPosts
You must be logged in to reply to this topic.