Hello,
I know this not free site, but still i will greatfull if you can suggest me:
Issue is, we have dhtmlxGRID, in grid we have first column combo as type “co”. now on edit i want to call enableFilteringMode(true);
iam not able figerout how to do it.
===================================================
grid_custom_fields_1 = new dhtmlXGridObject(“grid_custom_fields_1”);
grid_custom_fields_1.setImagePath(“dhtmlxGrid/dhtmlxGrid/codebase/imgs/”);
grid_custom_fields_1.setHeader(“Name,Value,Capture Date,Actions”);
grid_custom_fields_1.setInitWidths(",,,");
grid_custom_fields_1.setColTypes(“co,ed,ed,ro”);
grid_custom_fields_1.setColSorting(“str,str,date,na”);
grid_custom_fields_1.enableAutoHeigth(true, “150”);
grid_custom_fields_1.enableEditEvents(true, true, true);
grid_custom_fields_1.getCombo(0).put(‘TestV1’,‘TestName 1’)
grid_custom_fields_1.getCombo(0).put(‘TestV2’,‘TestName 2’)
grid_custom_fields_1.getCombo(0).put(‘TestV3’,‘TestName 3’)
grid_custom_fields_1.getCombo(0).put(‘TestV4’,‘TestName 4’)
grid_custom_fields_1.getCombo(0).put(‘TestV5’,‘TestName 5’)
grid_custom_fields_1.getCombo(0).put(‘TestV6’,‘TestName 6’)
grid_custom_fields_1.init();
var combo=grid_custom_fields_1.getColumnCombo(0);
grid_custom_fields_1.addRow(1,“Bolt,33,10,Save”,1);
grid_custom_fields_1.addRow(2,“Ayush,33,20,Save”,3);
grid_custom_fields_1.addRow(3,“Ram,33,30,Save”,3);
grid_custom_fields_1.addRow(4,“Rajesh,44,40,Save”,4);
// alert(grid_custom_fields_1.cells(1,0));
var combo1 = grid_custom_fields_1.getCellCombo(0);
combo1.enableFilteingMode(true)
===================================================
Regards,
Ram
column combo as type “co”. now on edit i want to call enableFilteringMode(true);
There are two combo types in grid
co - built in combo, without filtering ability
combo - dhtmlxCombo in grid, filtering can be used
grid_custom_fields_1.setColTypes(“combo,ed,ed,ro”);
…
var combo=grid_custom_fields_1.getColumnCombo(0);
combo.addOption(‘TestV1’,‘TestName 1’);
…
combo.enableFilteringMode(true);