Filtering...

I have a Grid, I use the PHP connector. My version is dhtmlx 4.0.2.

Everything seems to work well (I can updated the grid) until I try to use filtering on the grid using this code: pisgrid.$mygrid.attachHeader("#connector_select_filter,#connector_text_filter,#connector_text_filter,#connector_text_filter,#connector_select_filter");

I didn’t see any input boxes, I only saw strings the various strings : “#connector_select_filter”.

Why?

In an attempt to correct this error, I then included “dhtmlxConnector/codebase/connector.js”, I now got a message “Uncaught ReferenceError: dhtmlxError is not defined” on line 153 of connector.js : dhtmlxError.catchError(“LoadXML”,function(a,b,c)

Why? Doesn’t dhtmlx.js contain everything?

Hi WalterE,

i think that you doesn’t add the JS Script:

<script src="../codebase/ext/dhtmlxgrid_filter.js" type="text/javascript"</script>

See here in the doc: http://docs.dhtmlx.com/grid__filtering.html

Add this Script behind your dhtmlxgrid.js in your file and i think you will see the Filter :wink:

Hope that will help you.

Hello Björn, isn’t this for client-side filtering? I would like to filter on the server-side.

:unamused: sorry i saw yet that u use the dhtmlx.js and if i know this correctly grid_filter and connector are included in dhtmlx 4.0.2.

I checked some configs locally but i can’t reproduce your error :frowning:

hello, WalterE

dhtmlx.js should contain the connector.js library, so you don’t need to include any additional js files on your page.
If the issue still occurs for you, please, provide your code with the init of the grid and a dhtmlx.js that you are using in your application.