EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Ellipsis on July 10, 2012, 03:46:59 AM



Title: Combogrid, no grid in IE8
Post by: Ellipsis on July 10, 2012, 03:46:59 AM
When using an external JSON, IE8 gave me a parseError:

Unterminated String Constant

It has something to do with the /n/r

Anyone has seen this before?

No the debugger keeps telling me:   'field' is null or not an object  jquery.datagrid.js, line 668 character 1

.....


Title: Re: Combogrid, no grid in IE8
Post by: Ellipsis on July 13, 2012, 01:00:59 AM
Ok solved it,

The code had an error in the column array. The error (an additional , after the last column declaration) only affected IE because this browser was expecting a column.

In the call for a combogrid:

Code:
...
....
....
columns:[[
       {field:'id',title:'Id',width:80,hidden:true},
{field:'restUri',title:'RestUri',width:120,hidden:true},
{field:'identifier',title:'Identifier',width:120,hidden:true},
{field:'description',title:'Subject',width:150,sortable:true},
]],
....
....