Hi,
I'm having a editable grid containing Datetime editor field. My application runs in partial trust. When I try to copy a date and paste it in a new row of same field it throws a error and the application crashes.
Is there any soultion to avoid Paste option in datetime field or any other solution to avoid this error.
Can somebody help me in this regard?
Thanks in advance.
- Arthi
Hello Andrew,
Thanks for the update -- much appreciated. I will log this into our support system and will leave the case number here in case anyone encounters this and wants to subscribe for status updates.
Actually I spoke too soon. I was basing my statement on some info on MS's site regarding the sandbox security permissions allowing plain text clipboard usage but it looks like that may only be for the WPF provided controls since a security exception happens when using any of the public members of the Clipboard class (e.g. GetText, SetText) under partial trust. I would still report the issue since it should not result in an unhandled exception and perhaps we can workaround this in some way.
This looks like a bug. While it is true that full clipboard support is not allowed within partial trust, text clipboard support is. Since the masked editor is just dealing with text this should work and this seems like a bug. I would recommend reporting the issue to the support group and referencing issue # 15623.
Hello,
Indeed, I have seen this before -- it was related to our WPF XamDataChart control -- you can check out the thread here:
http://forums.infragistics.com/forums/p/17862/65754.aspx#65754
It appears that Clipboard operations are not allowed in Partial Trust at all. I asked our WPF xamChart devs for a solution / workaround, but we really could not think of one.
Hopefully someone else will help here, but as far as I know there is no easy solution for that.