EasyUI Forum
March 29, 2024, 06:25:57 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Deleted node messes up the row ids in treegrid  (Read 6604 times)
chandrasigniant
Newbie
*
Posts: 21


View Profile Email
« on: January 10, 2017, 01:28:39 PM »

We have a scenario where we delete few rows/nodes and then create a new node.
The treegrid('beginEdit') function ends up editing the existing row/node instead of the new one being created.

This happens only when we delete a node. Otherwise creating a new node works great using append followed by beginEdit functions in treegrid.

It looks like the finder.getTr function in datagrid component is still using the old html table when it finds the target node for editing.


Can you please fix it?
Logged
jarry
Administrator
Hero Member
*****
Posts: 2260


View Profile Email
« Reply #1 on: January 10, 2017, 04:25:59 PM »

Please show an example to demonstrate your issue.
Logged
chandrasigniant
Newbie
*
Posts: 21


View Profile Email
« Reply #2 on: January 11, 2017, 03:48:52 PM »

Do you have any jsfiddle examples I can edit and show you?
Logged
jarry
Administrator
Hero Member
*****
Posts: 2260


View Profile Email
« Reply #3 on: January 11, 2017, 06:36:27 PM »

Here is the example http://code.reloado.com/izupuj/edit#preview
Logged
chandrasigniant
Newbie
*
Posts: 21


View Profile Email
« Reply #4 on: January 13, 2017, 12:24:58 PM »

Thanks for your response. We solved it by generating a unique id for the node being appended. 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!