I'm using Kendo react inline editing feature.This is my code...
cancel = dataItem => {
const originalItem = this.state.DataSet.find(p => p.id === dataItem.id);
const data = this.state.DataSet.map(item =>
item.id === originalItem.id ? originalItem : item
);
this.setState({ DataSet: data, errors: [] });
this.DataList();
};
In this cancel method i'm calling this.DataList() which is a get request to the server. If i remove this line of code the inEdit is not closing.......So how can i close the inline method without writing this line?