Hi,
i have a xamdatagrid and iam binding a list<Person> as datasourse.
each row in the grid contain two buttons in last column,(edit and cancel).
when i click edit button then corresponding row will be in edit mode and when i click cancel edit mode will be cancelled.
how can do this.?
if anybody have any idea ,pls share me..
Hello Jafar,
I can suggest you see these two forum threads:
http://ko.infragistics.com/community/forums/t/69010.aspx
and
http://ko.infragistics.com/community/forums/p/64282/325300.aspx
where it is explained how to use Interaction in order to handle any XamDataGrid’s events in your ViewModel. The approach I gave you is just a guidance, which you can use as basis to achieve the functionality you want. For the buttons, you can change the Save Button’s Content once it is clicked and use a flag to know its current state, Save or Edit. Also if you need to implement any custom scenarios, you can contact our Consulting Team. You can read more detailed information regarding this here in our web site:
http://d3.infragistics.com/services/consulting-services/
hi stefan ,
i already seen that application,
i want to handle these button events in view model.
another modification that i want is after clicking edit button ,change its icon to some save icon.
after clicking save icon ,then change icon to edit icon.
there will be only two button in last column.(edit and cancel.)
can u pls send me a sample demonstrating this??
Regards,
Jafar VM
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I added three buttons in an Unbound Field for Edit, Save and Cancel. I also handle the Editor’s EditModeStarted event in order to set a Flag that indicates that the current Row is being edited. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.