Hi,
We have number of fields for XAMDataGrid where first field contains an EditButton. And remaining are from my ViewModel Object.
I need to display a panel which contains number of controls for editing the selected DataItem. That panel should be immediatly after the selected Item. Can you suggest me with some solution for this. A sample code will help me more.
Thank you.
Account Number
Name
Details
Location
Edit
1111
Test1
Test1 test 1
Hyderabad
Some controls with above data to Edit. And also Save and Cancel Buttons for saving and cancelling. After Save/Cancel I need to close this panel.
2222
Test2
Test2 Test2
New York
3333
Test3
Test3 Test3
London
Thanks,
Satya
S
Hello Satya,
Thank you for your post. I have been looking into and I can suggest you see the sample in the Samples Browser under xamDataGrid / Editing and Selection / Adorning Editors section, where it is shown how to achieve the functionality you want.
Hope this helps you.
Thank you for your reply. I already gone through the adorner sample. But i am not able to pass DataItem's data context to the Adorner. And also i want open and close the adorner on clicking of edit button. Can you provide me a sample with these two features. So it is helpful to me.
Hi Stefan,
I executed your sample. It is not showing any edit box. Button click event is working fine and
(Utilities.GetAncestorFromType(sender as DependencyObject, typeof(DataRecordPresenter), true) as DataRecordPresenter).IsExpanded also true.
My .Net framework is 4.0 and Infragistics version is 10.3. I changed the your sample (Framework 4.5 and Infragistics 12.2) to Framework 4.0 and Infragistics V10.3 then executed.
I have tested the sample against version 10.3 and .NET 4 and everything seems to work ok on my side. I have attached a video showing the functionality implemented in the sample.
Thank you Stefan. Its working fine.
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Its not working after installing service release 2010.3.2290. Assembly version 10.3.20103.2290.
Tested with version 10.3.20103.1003, Its working fine. All of my projects are using 2010.3.2290. Could you please suggest me to resolve this issue.
Regards,
Satya.
I have tested the sample with 2290 release and it doesn’t work, but I also tested it with the latest service release of 10.3 (2337) and everything works correctly, so I can suggest you download it by logging to our web site and going to Account \Keys & Downloads.