Skepsis IT Posted September 10, 2019 Share Posted September 10, 2019 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 and the problem came from the specific command at unidbgrid.pas . If I comment it out works ok (without an error). 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 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 10, 2019 Share Posted September 10, 2019 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? Quote Link to comment Share on other sites More sharing options...
Skepsis IT Posted September 11, 2019 Author Share Posted September 11, 2019 Hi, I am using build 1505 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 11, 2019 Share Posted September 11, 2019 24 minutes ago, Skepsis IT said: I am using build 1505 Hi, Can you make a simple testcase for reproduce? Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted September 24, 2019 Share Posted September 24, 2019 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'; Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 25, 2019 Share Posted September 25, 2019 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); Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted September 25, 2019 Share Posted September 25, 2019 6 hours ago, Sherzod said: 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); It worked, thank you very much !! Quote Link to comment Share on other sites More sharing options...
JamesP Posted April 19, 2023 Share Posted April 19, 2023 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. "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, Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 19, 2023 Share Posted April 19, 2023 1 hour ago, JamesP said: Could you please suggest any solution? Hello @JamesP You need to set the configuration during initialization. For example use OnCreate event. Quote Link to comment Share on other sites More sharing options...
JamesP Posted April 19, 2023 Share Posted April 19, 2023 1 hour ago, Sherzod said: Hello @JamesP You need to set the configuration during initialization. For example use OnCreate event. Hi Sherzod, Could you please clarify "For example use OnCreate event."? I mean, OnCreate of what? Grid or uniFrame? Kind Regards Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 19, 2023 Share Posted April 19, 2023 UniFrame OnCreate event, or Grid beforeInit. Quote Link to comment Share on other sites More sharing options...
JamesP Posted April 19, 2023 Share Posted April 19, 2023 23 minutes ago, Sherzod said: UniFrame OnCreate event, or Grid beforeInit. Thanks, I will try to rearrange the code Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.