jQuery EasyUI DataGrid autosave
HTML
<div dir="rtl">
<h2>Empty DataGrid Problem</h2>
<div id="tabs" class="easyui-tabs" style="height:300px;">
<div data-options="iconCls:''" title="testtab" style="padding:12px;direction:rtl">
<table id="dg" ></table>
</div>
</div>
</div>
CSS
</style>
<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/demo/demo.css">
<script type="text/javascript" src="http://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>
<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/easyui-rtl.css">
<script type="text/javascript" src="http://www.jeasyui.com/easyui/easyui-rtl.js"></script>
JavaScript
$(function(){
var dg = $('#dg').datagrid();
dg.datagrid({
title:"Test DataGrid",
fit:true,
rownumbers: true, //*** if true then the row is shown ***
//data: [],
columns:[[
{field:'row1', title: 'row1', width: 100, sortable:true},
{field:'row2', title: 'row2', width: 100, sortable:true},
{field:'row3', title: 'row3', width: 100, sortable:true},
{field:'row4', title: 'row4', width: 100, sortable:true},
{field:'row5', title: 'row5', width: 100, sortable:true},
{field:'row6', title: 'row6', width: 100, sortable:true},
{field:'row7', title: 'row7', width: 100, sortable:true},
{field:'row8', title: 'row8', width: 100, sortable:true},
{field:'row9', title: 'row9', width: 100, sortable:true},
{field:'row10', title: 'row10', width: 100, sortable:true},
{field:'row11', title: 'row11', width: 100, sortable:true},
]]
});
});