public function datatableFilterRender(Twig_Environment $twig, AbstractDatatableView $datatable, AbstractColumn $column, $loopIndex)
    {
        if ($filterProperty = $column->getFilter()->getProperty()) {
            $filterColumnId = $datatable->getColumnIdByColumnName($filterProperty);
        } else {
            $filterColumnId = $loopIndex;
        }

        return $twig->render($column->getFilter()->getTemplate(), array(
            'column' => $column,
            'filterColumnId' => $filterColumnId,
            'selectorId' => $loopIndex,
            'tableId' => $datatable->getName()
            )
        );
    }