Jump to content

CRLF in grid cell


delagoutte

Recommended Posts

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"

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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 ?

Link to comment
Share on other sites

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

 

 

grow_error.gif

edit1 :  i try this :

unlink dbgrid from the datasource

add a new grid, link to datasource, create column launch app -> same error

Link to comment
Share on other sites

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

dbmemo_crlf_add.gif

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

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