I wasted lot of time in the internet to search on this topic. But still I couldn't understand how to do it. Can anyone give me code snippets of the view model and the Xaml? It would be better if anyone can give me a sample project.
Hello Haritha,
Thank you for your email. I have been looking into your question and since you wish to create an MVVM application with the XamPivotGrid, I assume that you wish to use a FlatDataSource. I have created a sample application for you, that shows how you can create a FlatDataSource and use it with the XamPivotGrid. Also, you can read more detailed information regarding using the FlatDataSource with the XamPivotGrid, here in our documentation: http://help.infragistics.com/NetAdvantage/WPF/current/CLR4.0/?page=xamPivotGrid_DataBinding_Using_FlatDataSource.html.
Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Hi Krasimir,
It worked for me..!!! Thank you very much.
But now I have new problems to you.
How can I achieve this from XamPivotGrid?
(It would be very kind of you if you can send the source code as well.)
Thank you,
Haritha
I am just checking if you require any further assistance on the matter.
Thank you for your reply. I have been looking into your requirements and regarding the editing of the cells of the XamPivotGrid, I can suggest referring to following article of our documentation, where the editing of the XamPivotGrid is described: http://help.infragistics.com/NetAdvantage/WPF/current/CLR4.0/?page=xamPivotGrid_EditingDataCells.html. Also you can find an example of editing of the XamPivotGrid in our Samples Browser, under xamPivotGrid->Editing and Selection->Cell Editing.
Regarding the items adding to the XamPivotGrid, I can suggest creating an add new item form and using it to add items to the source of the FlatDataSource. I have modified the sample application that I have provided you with, in order to show how you can implement this approach.
Currently, the XamPivotGrid, does not expose property that will allows you to get or set the selected row. You can use the ActiveCell property of the XamPivotGrid, in order to get the currently active cell in your view model. I have submitted a new Product Idea for you, for having such property. . 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 PI13040091
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.