Problem with #connector_text_filter


#1

The filter in the header does not work. Not even an empty grid is displayed.

<script type="text/javascript">
    function printLog(text) {
		document.getElementById("ta").innerHTML = text + document.getElementById("ta").innerHTML;
		document.getElementById("ta").scrollTop = 0;
	}
	function gridXLS() {
		printLog("загрузка данных ...<br>");
	}
	function gridXLE() {
		printLog("данные загружены<br>");
	}
    dhtmlxEvent(window,"load",function(){
        //---grid initialization
        mygrid = new dhtmlXGridObject('mygrid_container');
        mygrid.setImagePath("codebase/imgs/"); 
        mygrid.setHeader("mac-адрес,ip-адрес,улица,дом,корп.,кв.,Ф.И.О.,баланс,состояние"); 
        mygrid.attachHeader(",,#connector_text_filter");
        mygrid.setInitWidths("120,90,*,50,50,50,*,80,80");
        mygrid.setColSorting("connector,connector,connector,connector,connector,connector,connector,connector");
        mygrid.setSkin("dhx_web");
        mygrid.setColTypes("rotxt,ro,rotxt,rotxt,rotxt,rotxt,ro,dyn,ro");
		mygrid.enableRowsHover(true,'grid_hover');
		mygrid.attachEvent("onXLS", gridXLS);
		mygrid.attachEvent("onXLE", gridXLE);
		mygrid.enableMultiselect(true);
        mygrid.init();
        mygrid.load("db.php"); 
        //---dataProcessor initialization
	    var mydp = new dataProcessor ("db.php");  specify a connector file
	    mydp.init(mygrid);
    });
</script>

Without this line
mygrid.attachHeader(",#connector_text_filter");
the grid is displayed.

What am I doing wrong?


#2

in version 2.6 build 100722 this all works fine


#3

Unfortunately, I was not able to reproduce your issue locally.
the following snippet seems to work correctly:
http://snippet.dhtmlx.com/5/e5b9e4e71
If the problem still occurs for you could you please, provide a simplified complete demo, where the problem could be reconstructed.
Here you can find a tutorial about creating a complete demo:
https://docs.dhtmlx.com/guides__demo_for_support.html


#4

I have prepared an archive with all the files for you. My data is stored in a MySQL database, there is a demo dump in the archive.demo.zip (185.0 KB)


#5

Hello. Managed to reproduce my issue locally?


#6

My apologies for the delay with the reply.

In your using dhtmlxGrid package sources there are no connector filters.
Unfortunately, All I can suggest, in this situation, is to update your dhtmlx package, as the using 3.6 build is not supported anymore and it is hard to find any suitable solution, that will work for sure.
Otherwise, you may try to use your own custom filtration based on the onFilterSatrt event:
https://docs.dhtmlx.com/grid__filtering.html#redefiningdefaultfilterlogic


#7

Thanks. Can you advise which version of dhtmlxGrid package should I use to be able to output data from a database with built - in filters and the ability to customize cells ?