I’m having a hell of a day today, I’ve been working on a project that usesdhtmlxSuite v 4.1.3 and everything was fine, now when I’m a week from release we decided to upgrade to 4.2.1 and before it comes in(the purchase order is being approved upstairs) I’ve thought I would request eval. version of 4.2.1. Got it today and was disappointed royally, the huge problem is combo box filtering does not work, it does with 4.1.3, but fails with the latest version. The sample in the 01_filter_on_client.html in the DHTMLX\dhtmlxSuite_v421_pro_eval\samples\dhtmlxCombo\06_filtering_sorting folder does not work as well. I used this simple thing
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<title>Combobox Test</title>
<link href="dhtmlx/codebase/dhtmlx.css" rel="stylesheet" />
<script src="dhtmlx/codebase/dhtmlx413.js"></script>
<style>
</style>
<script>
var myCombo = null;
function doOnLoad() {
var rnd = new Date();
var url = "";
myCombo = new dhtmlXCombo("cbo", "combo", 230);
myCombo.enableFilteringMode("between");
url = "xml/employeeCombo.xml"
myCombo.load(url, function () {
myCombo.selectOption(924);
});
}
</script>
</head>
<body onload="doOnLoad();">
<div id="cbo" style="margin-bottom:20px;"></div>
</body>
</html>
I’ve even compared codes 4.1.3 vs 4.2.1 and it looks the same. Please, I need an answer before they fire me.
I kind of narrowed down the flakiness of this filtering, if you start typing my name “Igor” in the combo it will pick the first name that starts with “I” (“Irby, Catherine”) and append “i” in the end.
If you start with the name “Monika” - there is no option that starts with “M”, so it jumps to “Rodas, Monika”, which is correct, but if you try to find “Mark” - on first “M” - you get
than when hit “A” - it goes to the first name that starts with “A” and puts “a” in the end.
Thanks Andrei, it does work now. I wish it could be just one file though, and I hope you fixed the master file of the current 4.2.1 version.
Thanks for the speedy fix, all in all it is an awesome product.