Title: treegrid - create hierarchical json data from MySQL in php without loadFilter Post by: andyj on July 28, 2013, 02:30:49 PM I worked out how to correctly format the json data source in hierarchical format using php.
This means you don't have to use the loadFilter method. Example of a correctly formatted JSON output (not based on my php select query - just in terms of structure): Code: [{ Here is the data_select.php file. Note: id field is account_id parent id field is parent_id Code: <?php The above will extract ALL records. Note: parent_id should be '0' by default not NULL. Does anyone know how to use this method to combine it with support for pagination? Ideally I would like to expand all nodes by default but offer pagination... Title: Re: treegrid - create hierarchical json data from MySQL in php without loadFilter Post by: stworthy on July 29, 2013, 09:25:06 AM The tutorial below shows how to add pagination to treegrid.
http://www.jeasyui.com/tutorial/tree/treegrid4.php |