problem with filtering

Hi, I’m sorry if this is a duplicate, but I couldn’t manage to find ananswer to my problem, so I decided to write a post about it.

I want to use both dynamic loading using my own server side code and browser side filtering.

I am using standard version 4.2 of dhtmlx.

code on my site looks somewhat like this:

<!DOCTYPE html>
<html>
<head>
    <script src="dhtmlx/dhtmlx.js"/></script>
    <link rel="stylesheet" href="dhtmlx/dhtmlx.css"/>
</head>
<body>
    <div id="dhtmlxGrid" style="width: 100%; height: 666px;"></div>
    <script type="text/javascript">
        dhtmlxEvent(window, "load", function(){
            var mygrid = new dhtmlXGridObject("dhtmlxGrid");
            mygrid.setImagesPath("dhtmlx/imgs/");
            mygrid.init();
            mygrid.enableSmartRendering(true, 50);
            mygrid.load("gridDataProvider.php");
        });
    </script>
</body>
</html>

gridDataProvider is returning XML batches of rows to display (I want to use dynamic loading).
Only first batch has headers configuration options.
Returned XML looks somewhat like:

<?xml version="1.0"?>
<rows total_count='500' pos='0'>
<head>
    <column width='160' type='ro' align='center' id='foo' sort='str'>foo</column>
    <column width='160' type='ro' align='center' id='bar' sort='str'>bar</column>
    ...
    <afterInit>
        <call command="attachHeader">
            <param>#text_filter,#text_filter,...</param>
        </call>
    </afterInit>
</head>
<row id='123456'>
...
</rows>
</head>

Everything is rendering normally and my data provider for dynamic loading works.
Each time I start typing in attached filter input nothing happens, and browser console tells me:

TypeError: c is null

I managed to determine, that disabling smart rendering fixes the issue, but it also disables dynamic loading, which I want enabled. Any ideas how to fix that?

In case of using the dynamic loading you need to implement the server-side filtering.
Here you can find a tutorial:
docs.dhtmlx.com/grid__dynamic_lo … otheserver

Bummer :neutral_face:
Anyway, thanks for the answer sematik.