Jump to content

columns numeric in dbgrid change value with down arrow


Wilton Ergon

Recommended Posts

columns in the numerical grid now by pressing up or down arrow, 
change the value of the field, incrementing by 1 or reducing by 1 the value, 
this has generated huge problem in my clients 
after this behavior has been added. Is it possible to disable this?
Link to comment
Share on other sites

3 hours ago, wilton_rad said:

columns in the numerical grid now by pressing up or down arrow, change the value of the field, incrementing by 1 or reducing by 1 the value, this has generated huge problem in my clients after this behavior has been added. Is it possible to disable this?

Hello,

Which build are you using?

What type of your field, can you explain in more details?

Link to comment
Share on other sites

build 1.90.0.1504, field integer or decimal(12,2) database sql server.

 

 

on any grid example in the demos folder, access a numerical column edit, and pressing the up or down arrows changes the value. I believe that this behavior should only be this way if the property NumericEditorHideTrigger = False

 

 

this property NumericEditorHideTrigger should be possible to configure per column, not to the entire grid.

Link to comment
Share on other sites

22 hours ago, wilton_rad said:

Is it possible to disable this?

Hello,

Are you using an editor?

If yes, you can assign, let's say UniSpinEdit1 and use these configs:

procedure TMainForm.UniFormCreate(Sender: TObject);
begin
  with UniSpinEdit1.JSInterface do
  begin
    JSConfig('keyNavEnabled', [False]);
    JSConfig('mouseWheelEnabled', [False]);
    JSConfig('hideTrigger', [True]);
  end;
end;

 

  • Like 1
Link to comment
Share on other sites


I do not use editor, nor can I, because spinedit in my case would not be legal, just that the column is numerical to have this behavior, this was not the case in previous versions, I know that the NumericEditorHideTrigger option can be very useful in some cases, but in my case it only disrupts the typing.
I still believe that activating the NumericEditorHideTrigger option where it causes the spinedit to appear, it would only be in that case that the arrows should work to change the value, if the spinedit is not shown the arrows should also not change the value. this would maintain compatibility with existing versions.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...