Sigma Php Ajax framework, Ajax Components, GUI Builder
February 12, 2012, 01:02:30 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Updating row in treegrid with childtreegrid causes rowID to get changed  (Read 822 times)
ludwigl
Sr. Member
****
Posts: 47


View Profile
« on: August 16, 2010, 02:37:23 AM »

Hi linb,

(I am using V3.0 R970)

the function updateRow (rowId, {sub: new linb.UI.TreeGrid({....})})
causes the treegrid to define a new rowId for the updated row.
(please also see the attached example (1. click on button "Show row ids", 2. click on button "Set sub treegrid", 3. click on button "Show row ids" again => the rowID of the first row has changed.))

Same happens if the following function is executed twice on the same row:
   updateRow (rowId, {sub: true})

With best regards,

Ludwig



Logged
linb
Administrator
Hero Member
*****
Posts: 433


View Profile
« Reply #1 on: August 16, 2010, 05:21:50 PM »

It is normal behavior
Logged
ludwigl
Sr. Member
****
Posts: 47


View Profile
« Reply #2 on: August 26, 2010, 06:40:18 AM »

Hi linb,

>It is normal behavior

That is sad news, especially since it worked before.

Well, I guess I have to rewrite my code then.

Ludwig
Logged
linb
Administrator
Hero Member
*****
Posts: 433


View Profile
« Reply #3 on: August 26, 2010, 06:40:14 PM »

Hi, I updated the code to keep the original id.
Logged
ludwigl
Sr. Member
****
Posts: 47


View Profile
« Reply #4 on: August 27, 2010, 01:27:30 AM »

Hi linb,

> I updated the code to keep the original id.

That is great.

Thank you very much,

Ludwig
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!