Whenever I call a function to open a dialog which has a datagrid, I got the following error in the console.
TypeError: $.data(...) is undefined
However this error does not cause any misbehaviour in my application. My code goes like this:
function openDialog(){
$('body').desktop('openApp', {
href:'datagridview.php',
//other code
});
}
datagridview.php
<body>
<table id="dg" data-options="href:view.php" class="easyui-datagrid">
<th field="categoryName" halign="center" width="20" sortable="true" align="left">Category</th>
//other codes follow
</table>
</body>
I tested the code in Firefox, Chrome, Internet Explorer 11. I do not see any misbehavior. But since It is an error, I want to get rid of it. Please help.
Thanks
Alfred