EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Alfred on April 05, 2017, 07:14:43 AM



Title: The addRow in edatagrid extension does not work when there is no data
Post by: Alfred on April 05, 2017, 07:14:43 AM
Why is the addRow method does not work when there is no data? It generates the following errors in the console. When there is data, it works fine? Could this be a bug?

Code:
TypeError: rows is undefined[Learn More]  jquery.easyui.min.js:11119:13
TypeError: data.rows is undefined[Learn More] jquery.easyui.min.js:11234:1
TypeError: col is null[Learn More]


Title: Re: The addRow in edatagrid extension does not work when there is no data
Post by: Pierre on April 05, 2017, 12:06:53 PM
What is your code?
Can you create some example here?


Title: Re: The addRow in edatagrid extension does not work when there is no data
Post by: Alfred on April 14, 2017, 09:04:46 PM
I found that the problem is not in easyui. It's the response that comes from the online JSONP. Thank you.