Hi team,
I am using Batchmode.. What happens is when updated a row using UpdateRowAsync.. Added and deleted rows goes reverted.
here is an example..
The added row was gone after this code.
_ = GridDetail.UpdateRowAsync(RowIndexDetail, _ADdetailEdit);
GridDetail.Refresh();
by the way, I'm using customize modal component as external form adding or editing row.
hope you could help me on this matter.
Best Regards,
Tyrone
Im also getting problem with AddRecordAsync.
For example I added a Row which is ID 3.
Then this is what happens when I add an another row.
ID 3 also changed based on newly added Row..
Short to say, all previous added row changes based on Newly added row..
Here is my code..
_ADdetailEdit.ID = RowCount++;
_ = GridDetail.AddRecordAsync(_ADdetailEdit);
I'll already fixed the UpdateRowAsync problem. I applied the update cell instead.
My only trouble now is the AddRecordAsync.
Hi Tyrone,
Greetings from Syncfusion support.
We checked your query , you facing a issue when previous added row changes based on Newly added row. We prepared sample as per requirement and attached in this ticket. Please refer the attached sample and snippet code for your reference.
|
public void Add() { if (a == b) { a = Grid.DataSource.Count(); b= a + 1; Grid.AddRecordAsync(new Order() { OrderID = b }); } else { b = b + 1; Grid.AddRecordAsync(new Order() { OrderID = b }); }
}
|
Please let us know if you have any concerns.
Regards,
Naveen Palanivel
Thanks Naveen. I'll give it a try.
Hello there,
I hope I'm not bothering anyone of you two by replying to this thread, but I'm rather
desperate.
I also have the mentioned issue of UpdateRowAsync() reverting changes. Above mentioned idea of updating the Cell doesn't work either.
My
current implementation looks like this. The Save()-Method gets called
on a button click inside a form. The SelectedItem-Object it binded to
that form, so everytime the user changes something, the object knows the
new value.
So
the object "SelectedItem" contains the changes from the User. The
method UpdateRowAsync() will then make a call to a OData-Method with the
following implementation. This also works - I have debugged it in
single step mode.
So
far so good. But during debugging I figured out, that the
patchedRule.Patch() doesn't apply the changes. When I change a field,
for example 'Frequency' (which is a string-field) from 'Weekly' to
'Daily' it will still show 'Weekly' after the Patch. Upon further
debugging I have noticed that the Field 'Frequency' will be in the
return List of the Method GetUnchangedPropertyNames().
So it looks like the method
UpdateRowAsync() will not send the changes.
Does anyone have an idea why that could be?
Thank you.
Hi Ziemann,
We have checked your query and before proceeding further with your requirement kindly share the below details to validate further at our end.
The above-requested details will be very helpful for us to validate the reported query at our end and provide the solution as early as possible.
Regards,
Naveen Palanivel