Sigma Php Ajax framework, Ajax Components, GUI Builder
May 21, 2012, 11:17:57 PM *
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: onChange event does not fire in treegrid when clicking arrow to expand sub  (Read 601 times)
ludwigl
Sr. Member
****
Posts: 47


View Profile
« on: August 13, 2010, 12:54:12 AM »

Hello linb,

I am using a treegrid (V3.0 R 969) with rows, which have children (sub:true).
If the children have not been loaded the onGetContent event is fired.
In case the children have been loaded and the arrow in the first/GridHandler column is clicked to collapse or expand the children, the onChange event does not fire and since the onGetContent event also does not fire, I can not detect that another row has been selected.

Since the row is set active whenever its children are collapsed or expanded, the onChange event should also be fired.

Is it possible to provide a fix?

With best regards,

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


View Profile
« Reply #1 on: August 13, 2010, 01:13:51 AM »

only setting selMode to "multi" or "single" will fire onChange event.

You should use: afterRowActive
Logged
ludwigl
Sr. Member
****
Posts: 47


View Profile
« Reply #2 on: August 13, 2010, 01:40:41 AM »

hello linb,

thank you for the quick reply.

I am sorry, but I mixed up the events, I did not mean the onChange event, I meant the onRowSelected event.

I checked my selMode and it is set to "none", which is ok and I also added the afterRowActive event.

So I detect the following behavior:

Initial situation: no row active, no row selected
click on a row (not the Gridhandler column) => fires the afterRowActive event and then the onRowSelected
click on the same row (not the Gridhandler column) => only fires the onRowSelected event

Initial situation: no row active, no row selected
click on the arrow in the Gridhandler column => fires the afterRowActive event
click on the same row (not the Gridhandler column) => only fires the onRowSelected event

This works fine for me, since I can detect the change in active rows now.

Thank you for your patience,

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!