We find when we copy text in grid and paste it in notepad. Grid will add some quotation mark.
The original text:FALSE RULE: RSUMR11 IF: APPWK(SRPTCOL,1) EQ " "
The pasted text:
"FALSE RULE: RSUMR11 IF: APPWK(SRPTCOL,1) EQ "" """Who know how to solve it?
Hello Shenjie,
I have been looking into your issue and tried to reproduce it with no success. I tried with the cell values and it worked as it should. Would you please describe your project and environment in more details or let me know if I have done something wrong so I am sure I replicate it correctly.
Looking forward to your reply.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support
We are using 2010.1 xamDataGrid. And we don't enter the edit model. We just select a cell and copy it(Ctrl + C). I think it use ApplicationCommands.Copy.
Hello,
I had tried testing this with 10.1 volume's latest release and it seemed to work ok. I also couldn't actually understand what do you mean by not entering the edit model, so I tried to copy a non editable cell and still didn’t get anything like the behavior you described. I can suggest downloading the latest Service Release from our website https://es.infragistics.com/Membership/Default.aspx?panel=Downloads#Downloads and see if it still exist there. Another thing you can do is explain in more details what your project consists of and how exactly are you using/modifying the XamDataGrid to get this result or attach a small sample project that can replicate it.
Looking forward to hearing from you.
Regards Petar.
Do you reproduce the problem I had with daniel_ngn's sample?
Hi guys,
I have been looking into this and have managed to reproduce the issue using the quoted value Daniel suggested. I am going to forward this to our development team. In the meantime you can use this approach to overcome the behavior using the ExecutingCommand and ExecutedCommand events of the XamDataGrid:
private void grid_ExecutingCommand(object sender, ExecutingCommandEventArgs e)
{
if (e.Command == ApplicationCommands.Cut)
temp = grid.ActiveCell.Value.ToString();
}
public string temp;
private void grid_ExecutedCommand(object sender, ExecutedCommandEventArgs e)
Clipboard.Clear();
Clipboard.SetText(temp);
if (e.Command == ApplicationCommands.Copy)
Clipboard.SetText(grid.ActiveCell.Value.ToString());
Please let me know whether this works as well on your side.
Also I have not been able to reproduce the issue with a cell that does not have any quotation marks in it. Please verify if this is the case on your side as well.
Looking forward to your replies.
Hi Petar,
I take a look at your workaround. I think it might not satisfy our requirement.
We might copy multiple lines at same time. So how can we put all the data into clipboard?
Yes this was only a suggestion on how to overcome this yourselves. This is why I had logged this behavior with our developers. I have just checked on its progress and it appears it has already been fixed internally and will be available for downloading in the next Service Release. Here is a page from our website you can always check the upcoming release dates: http://es.infragistics.com/support/documentation.aspx#ServiceReleases and here is a link for “My Keys and Downloads” page you can afterwards download it from: https://es.infragistics.com/Membership/Default.aspx?panel=Downloads#Downloads
Hope this helps.
Hello Shengjie,
We have shipped out a new service release where your issue is resolved. I'd be glad to find out if you had tested it out and if it had met your requirements.
Thank you for using Infragistics Components.
The issue is consistent in all versions since this is the first time anyone has reported it and it will be addressed in all supported versions in the upcoming Service Release.
I use NetAdvantage 2010.3 now. But the problem is still there. Which service release I should use?