DataProviderChannel

Description

A DataProviderChannel is an interface that represents a communication channel between the DataGrid and a handler that answers to requests from the DataGrid. It implements the GroupChannel interface.

Functions

Function Name

Parameter

Type

Description

close

 

 

Invoked by the DataGrid when the channel is no longer required.

updateItem

 

 

Invoked by the DataGrid when the channel needs to update value(s) on a dataItem.

 

dataItem

RawItem

The dataItem containing the edited value(s).

 

fieldValues

FieldValueCollection

A collection of [field, value] containing the changes to apply on the dataItem. The value represents the edited value for a specific field.

 

[output]

Promise<FieldErrorsCollection>

A collection of [field, Iterable<string>] for every field on the dataItem that could not be set by the DataProvider. The Iterable<string> represents the list of error messages related to the problematic field.