jQWidgets Forums

jQuery UI Widgets Forums Grid Cannot read property 'length' of undefined

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  admin 7 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • Myeongjoon
    Participant

    Hello.
    This ajax code return error.
    CODE :

    $.ajax({
    				url: "/Factoring/Factoring/GetCommonDailySum",
    				dataType: 'json',
    				type: 'post',
    				contentType: "application/json; charset=UTF-8",
    				data: JSON.stringify(parameters),
    				beforeSend: function () {
    					targetGrid.jqxGrid('clear');
    					targetGrid.jqxGrid('showloadelement');
    				},
    				success: function(data) {
    					// initailize grid
    					if (data.succese == false) {
    						alert(data.message);
    					} else {		
    						dataAdapter.localdata = data.ReturnValue;
    						targetGrid.jqxGrid('source').dataBind(); //this line will make error.
    						//targetGrid.jqxGrid({'source': gridData});
    					}
    					targetGrid.jqxGrid('hideloadelement');
    				},	// success
    				error: function(json, textStatus, errorThrown) {
    				}
    			});

    Error message in chrome debug :

    Uncaught TypeError: Cannot read property 'length' of undefined
        at i.jqx.dataAdapter.dataBind (jqx-all-3.8.0.js:7)
        at eval (eval at success (contents_1_1.js?dummy=20171017:133), <anonymous>:1:30)
        at Object.success (contents_1_1.js?dummy=20171017:133)
        at j (jquery-2.1.1.min.js:2)
        at Object.fireWith [as resolveWith] (jquery-2.1.1.min.js:2)
        at x (jquery-2.1.1.min.js:4)
        at XMLHttpRequest.<anonymous> (jquery-2.1.1.min.js:4)

    Is there any solution to solve this error?


    admin
    Keymaster

    Hi Myeongjoon,

    The error you’re pointing out is from a version released Apr-27-2015. Please, update to the current version as this might resolve your issue.

    Regards,
    Peter

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.