|
Title: Treegrid append and pagination Post by: hande89 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. Title: Re: Treegrid append and pagination Post by: stworthy 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 Title: Re: Treegrid append and pagination Post by: hande89 on June 25, 2014, 12:29:47 PM Working fine. :) Thanks.
|