EasyUI Forum
May 15, 2024, 11:14:19 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: How to use the loadData method for datagrid  (Read 27036 times)
jimprucha
Newbie
*
Posts: 3


View Profile
« 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


View Profile Email
« 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  
 
Jump to:  

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