filtering options not properly working


#1

Following the filtering problem http://forum.dhtmlx.com/viewtopic.php?f=2&t=41191

Server side xml looks like

....
<cell>
<![CDATA[ 111.111.111.111]]>
</cell>
<cell>
<![CDATA[ 2015-05-21 00:07:31 ]]>
</cell>
</row>
<coll_options for="2">
<item value="a" label="lower case a"/>
<item value="b" label="lower case b"/>
</coll_options>
</rows>

It’s supposed to show labels in the client end filtering select list, however it seems only value (“a” and “b”) shown in it, with label never been used.


#2

Which version of dhtmlx are you using?


#3

Hi Stanislav,
It’s pro4.03


#4

This problem remains.
Now the version is SuiteStd5.1 instead.


#5

If the col type is “co”, it works properly.
If the col type is “combo”, getColumnCombo is not a function.
If the col type is “ro”, it regards values as labels.


#6

Unfortunately the issue cannot be reconstructed locally.
Please, provide a complete demo, where the problem can be reconstructed locally.


#7

I guess the problem lies in the dhtmlxgrid.js.
Only the combo coltype and the co-leading coltype are regarded as combo, and only when the combo, the labels will be extracted, otherwise the values are used for both values and labels.



#8

I am having the same problem, dhtmlxGrid doesn’t work as per https://docs.dhtmlx.com/grid__columns_types.html#combo and https://docs.dhtmlx.com/grid__combo_integration.html

Here is some code to re-create this problem locally:

[code]

Org Structure Manager html, body { height: 100%; width: 100%; margin: 0px; overflow: hidden; } [/code]

Calling ‘getColumnCombo’ fails because that function doesn’t exist at runtime on the Grid object after init():

So you get the error:

Oh bugger, I just realised the ‘Pro’ in the URL https://dhtmlx.com/docs/products/dhtmlxGrid/samples/13_interaction_other_components/01_pro_combo.html … which means that combo use in the Grid is a Pro feature? Why is this not documented in the API docs?

See https://docs.dhtmlx.com/api__link__dhtmlxtreegrid_getcolumncombo.html


#9

You’re right the usage of the “combo” column type is available in PRO version only.
It is mentioned in the docs on the column types page:


According to your request we’ll update the docs and the “PRO” flag will be mentioned on the API and the integration page.