CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

TIWCGJQCheckBoxList lost focus after close

by kattunga » 29 Sep 2014 18:20

Hi I'm having a problem with TIWCGJQCheckBoxList.
I have a dialog where I move between components using the tab key, one of this components is a TIWCGJQCheckBoxList.
The problem is that when I close the popup list items using the mouse or the Esc key, the component lost focus and I can't continue navigating using the tab key.
I try to force the focus to the field using javascript in the OnClose event ( function (e) {$(<#myobjectname#>).focus();} ) but it does't work.

Is there any solution to this problem?

regards
Last edited by kattunga on 29 Sep 2014 19:28, edited 1 time in total.
kattunga
 
Posts: 83
Joined: 01 Oct 2013 19:03

by Jorge Sousa » 29 Sep 2014 18:54

Hello

Please use SetFocusOnElement

function (e) { SetFocusOnElement($(<#myobjectname#>); } )

it introduces a setTimeout to execute after a while
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by kattunga » 29 Sep 2014 19:28

I try:

JQCheckBoxListOptions.OnClose.Script := 'function (){SetFocusOnElement($(<#myobjectname#>));}';

but it still not work, after closing the popup with keyboard or mouse the component lost focus.
kattunga
 
Posts: 83
Joined: 01 Oct 2013 19:03

by Jorge Sousa » 29 Sep 2014 21:29

Hi

Do you have the same issue in a simple project?
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by kattunga » 29 Sep 2014 23:51

Yes, you can test it with the attached simple project.
a) Focus first edit box
b) tab to checklist
c) open lookup (with Enter or Mouse)
d) Close look up (with Esc or Mouse)
e) Focus is lost, if you press Tab or Shift+Tab wrong component is focused.
You do not have the required permissions to view the files attached to this post.
kattunga
 
Posts: 83
Joined: 01 Oct 2013 19:03

by Alexander Bulei » 30 Sep 2014 18:01

Hi kattunga ,

Added/Fixed in next build:

Code: Select all
v2.3.0.52:

JQCheckBoxList:
- Added: new FocusOnClose property - focus the element after popup close.


Thanks.

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 JQCheckBoxList

cron

Who is online

Users browsing this forum: No registered users and 2 guests

Contact Us.