EasyUI Forum
May 16, 2024, 03:00:29 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: cakePHP and displaying datagrid columns  (Read 5735 times)
ikaurov
Newbie
*
Posts: 4


View Profile Email
« on: September 01, 2013, 10:53:25 PM »

Hello All !
Using cakePHP 2.3.9 and easyui 1.3.4

Datagrid don't show any columns.
At Firebug I see that
<div class="datagrid-view1" style="width: 10000px;">
<div class="datagrid-view2" style="width: 0px;">

Datagrid column properties and source data are loaded fine and can be seen after manual changing 10000px to reasonable values.
Everything works fine under PHP without framework.

Please, advise.
Ilya Kaurov

PHP:
Code:
<table id="dg" ></table>
javascript:
Code:
$(document).ready(function() {
$('#dg').datagrid({
    url:'datagrid_data.json',
    columns:[[
        {field:'code',title:'Code',width:100},
        {field:'name',title:'Name',width:100},
        {field:'price',title:'Price',width:100,align:'right'}
    ]]
});
});
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!