Laravel 5 dynmic loading doesn't work

ErrorException in DBDataWrapper.php line 173: Undefined index: dhx_count

Hi!

I’m experiancing this (noted in title) issue when calling $conn->dynamic_loading() method. Can anyone tell me why? Here is my code:

// server side
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\MyController;

use App\Osoba;
use \Input;

use Dhtmlx\Connector\GridConnector;
use Dhtmlx\Connector\GridConfiguration;

class OsobeController extends MyController
{
public function getIndex(GridConfiguration $config, Osoba $osoba) {
$connector = new GridConnector(null, “PHPLaravel”);
$conf = $this->getGeneralGridConfig($config);
$connector->set_config( $conf );

$connector->dynamic_loading(50);
$connector->configure(
    $osoba, // new Osoba() model
    $osoba->getID(),  // name of the id field
    $this->_getFieldParts("name", $this->getOsobeFields()) // name of the fields to retrieve
);
$connector->render();

}

// client side

Grid = mainWin.attachGrid();
Grid.setImagePath(config.imgsPath);
//Grid.init();
Grid.load(loadPath);
Grid.enableSmartRendering(true);

Please, note that in case of dynamic loading of a data it is not available to initialize your header on the server-side you will have to initialize your grid on the client-side.