Update grid data when external value changes

Have a grid on a page that needed be be updated when a value on the page changes.  The grid needs to re-query the data (ODataV4Adapter) as the value of the filter changes.  

/odata/workbook?$filter=workbookId eq 1


workbookid changes to 2

/odata/workbook?$filter=workbookId eq 2

I've tried to refresh the grid and have called StateHasChanged to no effect.



1 Reply

RS Renjith Singh Rajendran Syncfusion Team October 15, 2021 12:08 PM UTC

Hi Carl, 

Greetings from Syncfusion support. 

We are not clear about the exact requirement/scenario. We have already documented a topic to perform CRUD in Grid when bind to odata services using ODataV4Adaptor. We suggest you to refer the below documentation for more details on this requirement. 
References :  

Also we suggest you to refer the below documentations for more details on applying custom query. 
References :  

Please refer the above references, and if you are still facing difficulties, then the following details would be helpful for us to proceed further. 

  1. Share with us a detailed explanation of the problem you are facing.
  2. Share a video demo explaining the replication of the problem.
  3. Share the complete Grid rendering codes along with model class codes.
  4. If possible, share a simple issue reproducing sample for us to validate based on your scenario.

The provided information will help us analyze the problem, and provide you a solution as early as possible. 

Regards, 
Renjith R 


Loader.
Up arrow icon