Jump to content

dbgrid memo editor problem


Skepsis IT

Recommended Posts

Hi,

I'm in front of a strange problem. I have a unidbgrid with a memo column that I have set an editor unimemo. Only at the first time that I load data on the grid I get the following error

image.png.0b3a55f8282f01d226058db6cbbbcc81.png

and the problem came from the specific command at unidbgrid.pas . If I comment it out works ok (without an error).

image.png.d002cdefb34d61bb6d8f6470b607f678.png

The strange thing is that I make the same to other frames and work ok without an error

Does anyone has a clue what's going on?

Regards

Link to comment
Share on other sites

1 hour ago, Skepsis IT said:

I'm in front of a strange problem. I have a unidbgrid with a memo column that I have set an editor unimemo. Only at the first time that I load data on the grid I get the following error

Hi,

Which build are you using? Can you make a simple testcase for reproduce?

Link to comment
Share on other sites

  • 2 weeks later...
On 11/09/2019 at 02:02, Sherzod said:

Oi,

Você pode fazer um teste simples para reproduzir?

This error happened to me, the test I did was like this:

If I have a grid field linked to an editor and I change its column name at run time the error occurs.

 

C:\Program Files (x86)\FMSoft\Framework\uniGUI\Demos\Desktop\Grid with Memo and Image

Place a button in the project above and add a line on the button click:

UniDBGrid1.Columns.Items [0] .Title.Caption: = 'test';

Link to comment
Share on other sites

7 hours ago, eduardosuruagy said:

Place a button in the project above and add a line on the button click:

Confirmed.

I will open a ticket in the support portal.

As a "workaround" you can try this approach for now:

  with UniDBGrid1 do
    JSInterface.JSCall('setText', ['New title'], Columns[0].JSColumn);

 

Link to comment
Share on other sites

  • 3 years later...

Hi Sherzod,

I have exactly the same problem as Skepsis IT reported. (dbgrid memo editor problem). eduardosuruagy came with not much relevent issue
that you have sorted out, but the initial problem wasn't resolved.

image.png.13c9eb29240c133451b2afdcf0d50c93.png
"Skepsis IT" showed the code line:

if Fedit is TUniCustomMemo then
  with TUniCustomMemo(FEdit).JSInterface do
  begin
    JSConfig('grow', [True]);
  end;

Could you please suggest any solution?

Kind Regards,

 

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...