Hi,
Am evaluating the Xamgrid for our LOB using sliverlight, am using the V2012.1 package and like to clarify some issues with the paste functionality.
private void xamGridAddNewCpty_ClipboardPasting( object sender, Infragistics.Controls.Grids.ClipboardPastingEventArgs e ) { e.PasteAsExcel(); }
Using the above code I can paste to a Grid that has 1 row 3 cells, but if the Excel copy has more rows than thats in the grid, then the data is not pasted into the grid,
hooking into the below event i get a truncation error, can you suggest me the correct settings to be set or any code block that i need to implement to get this functionality.
private void xamGridAddCpty_ClipboardPasteError( object sender, ClipboardPasteErrorEventArgs e ) { bool b = e.IsRecoverable; }
NOTE : No code behind permitted in our project except the basic ones, so preferrably if you can provide a MVVM way of doing it, its much appreciated.
Anybody??
Hello,
I have been looking into your question and this behavior is expected as the count of the rows is strictly fixed. You can try to add the additional rows manually as it is suggested in the following link from our documentation :
http://help.infragistics.com/NetAdvantage/WPF/2012.1/CLR4.0/?page=xamGrid_Paste_Event_and_Event_Arguments.html
If you have any other questions on this matter, feel free to ask.
Thanks Yanko,
But isint this completely out of the MVVM way of doing things, so if i paste a huge row with N columns, i have to loop thro and set every property, the code review guys are not going to approve this way of using the codebehind, is there an MVVM way to this please?
After some research the functionality that you are looking for has been determined to be a new product idea. I have sent your product idea directly to our product management team. Our product team chooses new product ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested ideas, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your idea is chosen for development, you will be notified at that time. Your reference number for this product idea is PI12080047.
If you would like to follow up on your product idea at a later point, you may contact Developer Support management via email. Please include the reference number of your product idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com
Thank you for your request.