|
Title: assigning columns fields in datagrid Post by: wymak on January 28, 2015, 07:56:32 AM I think of 2 ways to assign column values in datagrid:
(1) method One, assign column with an array variable: var fldArr = [[ {field:'id',title:'id'} ]]; $('#dgtest').datagrid({ url:"test.php", columns: fldArr }); (2) Method Two: assign columns inside the datagrid declaration $('#dgtest').datagrid({ url:"test.php", columns: [[ {field:'id',title:'id'} ]] }); Method One did not work, Method Two succeeded. What's wrong with the variable method? Title: Re: assigning columns fields in datagrid Post by: eagleeye on January 28, 2015, 12:08:37 PM Hi, check this url
http://www.jeasyui.com/forum/index.php?topic=342.0 (http://www.jeasyui.com/forum/index.php?topic=342.0) |