EasyUI Forum
November 04, 2025, 04:56:05 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: Treegrid append and pagination  (Read 12213 times)
hande89
Jr. Member
**
Posts: 56


View Profile
« on: June 25, 2014, 12:51:49 AM »

I have this example: http://www.jeasyui.com/easyui/demo/treegrid/clientpagination.html

I append a child node to "Coding" like this:
Code:
$('#tg').treegrid('append',{parent:3,data:[{"id":10,"name":"Java","persons":2,"begin":"3/11/2010","end":"3/18/2010","progress":80}]});

Parent node's icon changes to folder, but if I expand it the child node is not displayed. If I change page, all rows disappear. Pressing the refresh button or changing page size shows the added node but no others.

Without pagination my code works.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: June 25, 2014, 09:01:28 AM »

In order to solve this issue, you have to override the 'append' method of treegrid. Please try this example again.
http://www.jeasyui.com/easyui/demo/treegrid/clientpagination.html
Logged
hande89
Jr. Member
**
Posts: 56


View Profile
« Reply #2 on: June 25, 2014, 12:29:47 PM »

Working fine.  Smiley Thanks.
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!