This is a migrated thread and some comments may be shown as answers.

QDSCV - edit item

2 Answers 28 Views
DomainDataSource
This is a migrated thread and some comments may be shown as answers.
Anton
Top achievements
Rank 1
Anton asked on 21 Nov 2014, 11:45 AM
We are using QDSCV for entity collection display in RadGridView.

Collection item editing performed within separate DomainContext (let`s call it "contextEdit").

When edited entity updated in DB by contextEdit, then I need to refresh same entity  in QDSCV .

I am looking for best way to refresh Item in QDSCV so the RadGridView reflect this changes.

For now I am using my own deep copy procedure to assign QDSCV entity property values from the corresponding contextEdit` entity. Also using QDSCV.EditItem/CommitEdit:

qdscv.EditItem(currItem);
currItem.AssignFrom(newItem);
qdscv.CommitEdit();

This works fine during first call (QDSCV entity updated and RadGridView displayed changes).
But when I edit the same entity second time, the QDSCV entity updated, however RadGridView did not reflect any new changes.
Is it a bug in EditItem/CommitEdit methods or I have missed something?

Whether it`s another way to update QDSCV items so it is reflected in RadGridView?


2 Answers, 1 is accepted

Sort by
0
Anton
Top achievements
Rank 1
answered on 24 Nov 2014, 01:01 PM
Oh. It is appeared that project I am exploring based on Telerik Q3 2013. And Q3 2013 seems have a bug related to EditItem/CommitEdit methods. At least in Q1 2013 EditItem/CommitEdit works as expected. So I have swithched to Q1 2013 for a while.
0
Dimitrina
Telerik team
answered on 24 Nov 2014, 02:54 PM
Hi,

We indeed resolved a similar issue related to editing items. I am glad to hear it now works fine for you with the latest version.

Regards,
Dimitrina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
DomainDataSource
Asked by
Anton
Top achievements
Rank 1
Answers by
Anton
Top achievements
Rank 1
Dimitrina
Telerik team
Share this question
or