CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Focus fires twice

by etwoss » 22 May 2015 11:31

Hi

I have added an eventhandler to OnFocus
In code site i see its fired twice if i select a Node , one time with the old key(of the node i was on), and one time with the new key.
Codesite shows the 'nodeKey' value of two tines node focus.
between the two i added the flag

Eric
You do not have the required permissions to view the files attached to this post.
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by Alexander Bulei » 22 May 2015 12:04

Hi Eric,

Provide us the simple testcase.
T.I.A

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by etwoss » 22 May 2015 15:04

Hi

Done, added Codesite to your Demo in the OnFocus event
You will see codesite write two lines if a node gets focus

Eric
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by Alexander Bulei » 22 May 2015 17:30

Hi Eric,

No changes on form, btw use OnSelect instead...

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by Alexander Bulei » 27 May 2015 09:38

Hi Eric,

Yes, the focus fires twice when request to server, but don't think its a bug, maybe jquery plugin design failure.

Please use OnActivate event, more appropriate than OnFocus event.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to JQDynaTree

cron

Who is online

Users browsing this forum: No registered users and 2 guests

Contact Us.