Can't override BatchUpdateAsync in 17.4.0.55

I'm trying to override BatchUpdateAsync as below, however the method is not found? I have the other CustomAdaptor methods overridden and working.

public override async Task<object> BatchUpdateAsync(DataManager dataManager, object changedRecords,
                object addedRecords, object deletedRecords, string keyField, string key,int dropindex)
            {


Error CS0115 'ReportTextManagerBase.CustomAdaptor.BatchUpdateAsync(DataManager, object, object, object, string, string, int)': no suitable method found to override MFSF.WebAdminUI

3 Replies

VN Vignesh Natarajan Syncfusion Team March 26, 2020 11:28 AM UTC

Hi Mark, 
 
Greetings from Syncfusion support. 
 
Query: “I'm trying to override BatchUpdateAsync as below, however the method is not found? 
 
We have analyzed your query and we are able to reproduce the reported issue at our end. Because the type of dropIndex variable in arguments is int?. But in the share the code example, you have defined it as int. Hence the reported issue occurred.  
 
Kindly modify the type as below to resolve the issue.  
 
public override async Task<objectBatchUpdateAsync(DataManager dataManagerobject changedRecords, 
              object addedRecordsobject deletedRecordsstring keyFieldstring key,intdropIndex) 
      { // return the values } 
 
 
Kindly get back to us if you have further queries.  
 
Regards, 
Vignesh Natarajan. 



MB Mark Barton March 26, 2020 12:24 PM UTC

For information, the current documentation for CustomAdaptor doesn't include additional DropIndex parameter at and the Release note with the breaking change is just showing as int DropIndex. Thanks for your help and quick response.


VN Vignesh Natarajan Syncfusion Team March 27, 2020 04:55 AM UTC

Hi Mark, 

Thanks for the update.  

Please find the updated documentation from below  


Kindly get back to us if you have further queries. 

Regards, 
Vignesh Natarajan. 


Loader.
Up arrow icon