Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread Gridcolumn - adding Items from table
Sat, Jul 25 2015 5:26 AMPermanent Link

Paul Waegemans

IMS bvba

Avatar

GridColumnInfo.items.clear;
GridColumnInfo.items.add('');
with L_StatusTrainingen do
    begin
    open;
    first;
    while not eof do
          begin
          GridColumnInfo.items.add(L_StatusTrainingen.columns['status'].asstring);
          next;
          end;
    end;

The added Items must normally appear in the column INFO  (controltype=ctEditComboBox)  but they don't ! (see screenshot hereby)

Is this a bug?  This worked before!

Paul.



Attachments: EWBScreenshot.jpg
Mon, Jul 27 2015 4:30 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Paul,

<< The added Items must normally appear in the column INFO  (controltype=ctEditComboBox)  but they don't ! (see screenshot hereby)

Is this a bug?  This worked before! >>

What do you mean by "before" ?

Please email me a small example of what you're doing that isn't working. My guess is that the table isn't populated correctly, or something similar.

Tim Young
Elevate Software
www.elevatesoft.com
Mon, Jul 27 2015 6:01 PMPermanent Link

Paul Waegemans

IMS bvba

Avatar

This code worked in the preview version of EWB2

see document herby with the table involved and the code in EWB





Tim Young [Elevate Software] wrote:

Paul,

<< The added Items must normally appear in the column INFO  (controltype=ctEditComboBox)  but they don't ! (see screenshot hereby)

Is this a bug?  This worked before! >>

What do you mean by "before" ?

Please email me a small example of what you're doing that isn't working. My guess is that the table isn't populated correctly, or something similar.

Tim Young
Elevate Software
www.elevatesoft.com



Attachments: ewbproblem.docx
Tue, Jul 28 2015 7:26 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Paul,

<< see document herby with the table involved and the code in EWB >>

Please email me any sample projects as a .zip file.  Don't attach them here with regular messages.

Tim Young
Elevate Software
www.elevatesoft.com
Tue, Aug 4 2015 9:30 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Paul,

Per email:

Okay, I've got it, and it's definitely a bug.

The hot fix is this:

In the WebGrids unit, comment out the code as follows:

function TGridEditComboBox.DoButtonClick: Boolean;
begin
  SetFocus;
  Result:=TGridColumn(Owner).DoButtonClick;
//   if Result then   <<<<<<<<<<<<<<<<
//      DoDropDown;  <<<<<<<<<<<<<<<<
end;

The same is true for the TGridDialogEditComboBox.DoButtonClick method.

A fix will be in 2.01.

Tim Young
Elevate Software
www.elevatesoft.com
Image