delagoutte Posted January 11 Share Posted January 11 Hello, if i copy a text with many line and i past it in a grid cell the CRLF are removed. how can ido to keep then ? a grid option that i don't konw ? sample : i copy "my text begin here" i past this text in the grid cell. the text in cell became "my text begin here" Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 11 Share Posted January 11 Hello Jean, Columns[xx].DispayMemo = True ? Quote Link to comment Share on other sites More sharing options...
delagoutte Posted January 12 Author Share Posted January 12 i thought that but no, if i set display memo to true. i have a wordwrap on the cell if the text is too long but in the value of the cell/ the string not really contain a CRLF. and i copy a string that contain a CRLF, the CRLF is lost when i past in the cell Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 12 Share Posted January 12 Where do you copy from, and how, and how do you paste? Quote Link to comment Share on other sites More sharing options...
delagoutte Posted January 12 Author Share Posted January 12 i copy from a unimemo with Ctrl+C i past in the cell with Ctrl+V ps : if i past in notepad i have the CRLF Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 12 Share Posted January 12 Don't know. Need to check. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 12 Share Posted January 12 5 hours ago, delagoutte said: i copy from a unimemo with Ctrl+C i past in the cell with Ctrl+V ps : if i past in notepad i have the CRLF In this case, you should use the UniMemo editor for the column. Quote Link to comment Share on other sites More sharing options...
delagoutte Posted January 16 Author Share Posted January 16 if i use unimemo as editor with or without displaymemo i have this error when i load data : : GridWordReplace:TUniDBGrid:Config Option: O245->grow:true<br/>is refering a previous request,<br/>it's not allowed in AJAX request or JS handler.<br/>Use equivalent Public Property or Method instead any idea ? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 16 Share Posted January 16 Which build are you using, Jean? Quote Link to comment Share on other sites More sharing options...
delagoutte Posted January 16 Author Share Posted January 16 1.90.0.1564 with delphi XE7 Quote Link to comment Share on other sites More sharing options...
delagoutte Posted January 16 Author Share Posted January 16 i'll try to update to the last version but i don't see any fix for a problem like that in releasenote. i'll give you the result after update Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 16 Share Posted January 16 Are you using this config somewhere? JSConfig('grow', [True]); Quote Link to comment Share on other sites More sharing options...
delagoutte Posted January 16 Author Share Posted January 16 no, i don't this this in my source Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 16 Share Posted January 16 25 minutes ago, delagoutte said: no, i don't this this in my source Can you reproduce this in our demo examples? Quote Link to comment Share on other sites More sharing options...
delagoutte Posted January 16 Author Share Posted January 16 same error with last unigui version 1579. i'll try later to reproduce in demo examples Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 16 Share Posted January 16 9 minutes ago, delagoutte said: i'll try later to reproduce in demo examples Ok. Let us know. Quote Link to comment Share on other sites More sharing options...
delagoutte Posted January 16 Author Share Posted January 16 i can't reproduce in unigui sample project. i change my code for tying to find the problem (see gif attach to this message) now the query that is linked to grid is active := false;. i launch app -> no error i click a button that set query.active := false; query.active := true; -> error i click again on button or i click on refresh button on dbnavigator -> all is good i can past CRLF in cell. where can i search ? i don't have anything in clientevents i havegrid event oncolumnfilter, onclearfilters, onAjaxEvent edit1 : i try this : unlink dbgrid from the datasource add a new grid, link to datasource, create column launch app -> same error Quote Link to comment Share on other sites More sharing options...
delagoutte Posted January 16 Author Share Posted January 16 O245 is not the id of grid like i thought. it is the id of the memo that i assign as editor of the first column Quote Link to comment Share on other sites More sharing options...
delagoutte Posted January 16 Author Share Posted January 16 it seems to be an internal unigui problem. how can i check that all is good in dpr, mainform, mainmodule, servermodule ... that could explain this error message if i use a uniedit -> no problem Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 16 Share Posted January 16 1 hour ago, delagoutte said: unlink dbgrid from the datasource add a new grid, link to datasource, create column launch app -> same error Can you make a simple testcase to reproduce and check? Quote Link to comment Share on other sites More sharing options...
delagoutte Posted January 16 Author Share Posted January 16 sorry but i can't reproduce in a sample project. i wasted to mutch time on this problem so i decide to not use the editor unimemo directly in grid but a unidbmemo link to the field that i want edit but there is an other problem : i go to the end of texte , suppr all the CRLF and post-> new CRLF is added Quote Link to comment Share on other sites More sharing options...
delagoutte Posted January 22 Author Share Posted January 22 hello, I am trying to reproduce the problem and I have reproduced it partially but not on the Unigui example projects. I will try to explain when the error message occurs. i have a TFDQuery with a query with many field including 2 stringfield and 1 integerfield that i want display in grid. 1- i link the query (via datasource)to the grid and i add a column for one of both string field. test : ok, no error 2-i add a editor unimemo to this column. test : ok, no error 3-i add a second column for second string field with unimemo as editor. test : ok no error 4-i add a third column for the integer field. test KO , grow:true error i try adding a unispinedit as editor for this third column without effect on the error in my case this third column is not very important in my app, so i remove it. For me, the problem is no longer blocking but i think there is a bug somewhere in the unigui framework. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 22 Share Posted January 22 Hello Jean, 2 minutes ago, delagoutte said: 1- i link the query (via datasource)to the grid and i add a column for one of both string field. test : ok, no error 2-i add a editor unimemo to this column. test : ok, no error 3-i add a second column for second string field with unimemo as editor. test : ok no error 4-i add a third column for the integer field. test KO , grow:true error Do you have a simple testcase to check? Quote Link to comment Share on other sites More sharing options...
delagoutte Posted January 22 Author Share Posted January 22 i can't reproduce with clientdataset that are include in demo unigui. i'll try to make an extract of my app when i find time Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 22 Share Posted January 22 1 minute ago, delagoutte said: i'll try to make an extract of my app when i find time Ok, thanks. 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.