CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

DropDown list and existing value

by jredoc » 26 Jan 2014 20:13

Hello

I have a IWCGJQDropDown attached to both a DataSource and a ListdDataSource. The field type of DataLink.FieldName is a string;

When the DataSource field contains an existing value, and the DropDown list is displayed by clicking on the IWCGJQDropDown, the dropdown list does not highlight the dropdown item that corresponds to the existing value of the DataLink.FieldName.

There is a IWCGJQDropDown.JQDropDownOptions.OnOpen event that fires when the dropdown opens, but I have been unsuccessful in getting the dropdown list item that corresponds to the current datasource field value to be highlighted.

Suggestions?

John
jredoc
 
Posts: 125
Joined: 11 Jun 2013 03:34

by Alexander Bulei » 27 Jan 2014 12:47

Hi John,

We can't confirm this.

Check our demo : http://www.cgdevtools.com/demo/JQueryDemoIW14_V2_ISAPI_64.dll?frame=DBGridFormatters

1. Navigate with "DB Navigator"
2. Press "Edit" button
3. Open the DropDown and you will see the highlighted item.

What is the theme?

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 jredoc » 27 Jan 2014 21:35

Well, this is interesting.

In the cgDevTools Demo 2 open the dropdown in the DB+ Grid Formaters frame. Then place the table in Edit, select Sculpin (which is the bottom item in the drop down list) and post.

Place the table in edit a second time. Sculpin is now the displayed item, but when you open the drop down, Sculpin is not displayed. Sculpin is actually selected, but it is not displayed. This can be documented by depressing the up arrow key which will move the selected dropdown list item up one and highlight Butterfly Fish which is the record directly above Sculpin.

So, the correct record in the drop down list is found when the drop down list is opened. However, from a usability perspective, if the selected record is not within the dropdown count, the drop down list does not move the record set in the drop down list to display the currently selected record when the drop down list is initially opened.

This is a usability issue. The expectations of the user is that, the dropdown characteristics of the cgDevTools dropdown should be the same as the dropdowns the users work with in the standard Delphi based programs.

Is there a solution for this issue?

Again, thanks for all your efforts.

John
jredoc
 
Posts: 125
Joined: 11 Jun 2013 03:34


Return to JQDropDown

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.