Note:

In a nutshell, the phpGrid displays the datagrid rendered by jqGrid. Select2 does the autocomplete and nested dropdown completely on the client side.
which is also the reason why the data javascript data source must be structured correctly.

PHPGRID_ERROR: Could not execute query. Error 102