EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 15, 2024, 11:14:19 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
How to use the loadData method for datagrid
Pages: [
1
]
« previous
next »
Print
Author
Topic: How to use the loadData method for datagrid (Read 27036 times)
jimprucha
Newbie
Posts: 3
How to use the loadData method for datagrid
«
on:
December 15, 2011, 09:00:26 AM »
Hi All,
I need an example on how to use the loadData method for the datagrid that is in the file jquery.datagrid.js??
Any and all help is greatly appreciated.
I have the datagrid being created and the columns added but I now want to add the JSON data to the datagrid.
Thank You,
Jim
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: How to use the loadData method for datagrid
«
Reply #1 on:
December 15, 2011, 07:04:06 PM »
// create datagrid first
$('#tt').datagrid({
...
});
var data = [{...},{...}];
// then call 'loadData' method
$('#tt').datagrid('loadData', data);
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...