CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Which Item Clicked?

by Aggie85 » 06 Jul 2015 04:32

Howdy!

I have implemented a common TIWCGJQMListItem OnVClick::OnEvent for all the non-divider items in my listview and I have checked to send all properties.

I have figured out that I can parse out which item was clicked by parsing it out of the "submitevent" index/value, but I was wondering if there was a cleaner way?

Best Regards,

Aggie85
Aggie85
 
Posts: 273
Joined: 15 May 2013 02:24

by Alexander Bulei » 06 Jul 2015 16:49

Hi Aggie85,

delphi code
IWCGJQMListView1.Items.ClickedItemIndex


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 Aggie85 » 03 Jun 2016 03:57

Howdy Alex!

I am revisiting code I wrote from last summer!

In the latest beta version of CGDevTools, ClickedItemIndex always returns -1 (at least from an ajax event)!

All the best!

Aggie85
Aggie85
 
Posts: 273
Joined: 15 May 2013 02:24

by Alexander Bulei » 03 Jun 2016 09:19

Hi Aggie85,

Let me check ;)

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 » 03 Jun 2016 09:37

Hi,

Please check the attached project.
It doesn't works for you?

Best Regards.
You do not have the required permissions to view the files attached to this post.
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 Aggie85 » 03 Jun 2016 15:43

Howdy Alex!

Your example does but if you set the Events.OnVClick.Ajax := True it doesn't.

Best Regards,

Aggie85
Aggie85
 
Posts: 273
Joined: 15 May 2013 02:24

by Alexander Bulei » 03 Jun 2016 15:51

Hi,

It's True by default.

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 Aggie85 » 03 Jun 2016 15:57

Just verified it is True by default but In Seattle (10.0) C Builder the ItemClicked is always -1 unless Ajax = False.

Thanks!

Aggie85
Aggie85
 
Posts: 273
Joined: 15 May 2013 02:24


Return to JQMListView

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.