Edited value not displaying when using valueaccessor

Hi,

We use the grid component in conjunction with observables in batch mode.

We retrieve data from a database view via an API. We want to display the data from either a field A or B (if it is filled).
I found out that I could use valueaccessor for this purpose. Works great.

If I then want to edit the data, the grid component correctly shows the edited value if the data derives from field A,
but not field B. If data derives from field B, and I edit it, it shows the old value. It does however save the new, edited
value after pressing "update". It does not refresh the data as well.

Basically the question in it's basic form are:
  1. Why is the edited value of field B not shown? How to evoke this?
  2. How to refresh the data after saving the edited data? We use a service for this, so outside the "grid" scope.
If it is not possible in "batch mode", we have to switch to "normal mode" - if that is part of the solution.

We hope to hear something from you!

Kind regards,

Bas

4 Replies

BA Bas May 17, 2021 10:35 AM UTC

We solved problem #1 in the backend, by building in the logic to choose between value A or B.

What remains is problem #2.


MS Manivel Sellamuthu Syncfusion Team May 19, 2021 11:25 AM UTC

Hi Bas, 

Greetings from Syncfusion support. 

Before proceeding your query, could you please share the below details. which will help us to understand your requirement, and provide a better suggestion as soon as possible 

  1. Share the complete Grid code
  2. Share the screenshot or video demonstration of the issue
  3. Have you used Observable data binding in the Grid(dataSourceChanged event)
  4. It does however save the new, edited value after pressing "update". It does not refresh the data as well.” – Please clarify this query.
  5. Please explain more about your query 2.

Regards, 
Manivel 



BA Bas August 17, 2021 11:42 AM UTC

Yes, we use Observables. Eventually by using a forkJoin() the problem was solved.



PG Praveenkumar Gajendiran Syncfusion Team August 18, 2021 10:29 AM UTC

  
Hi Bas , 
  
Thanks for your update. We suspect that you have resolved the reported problem at your end.. 
  
If not, please get back to us if you need further assistance. 
  
Regards, 
Praveenkumar G 


Loader.
Up arrow icon