Zend certified PHP/Magento developer

Ajax call to inline grid text field from block grid

I have created the block grid in admin product edit page section, I have added a text field in that grid column using below addcolumn method.

$this->addColumn(
            'position',
            [
                'header' => __('Position'),
                'type' => 'number',
                'index' => 'position',
                'editable' => true,
                'filter' => false,
                'sortable' => false,
            ]
        );

Now I want to add an Ajax call when the admin user tries to change the inline state,
enter image description here

When the admin user wants to change the position from row number three to row number one, at that moment I want an ajax call in the text field of the position column.

can I someone help me to how to add Ajax call in block grid?