Hello All,
We are using DHTMLX 3.6 Version . In one of the grids we have the copy/paste functionality is not working as expected.
- Combo box has text and value as key/value pairs . Whenever we copy paste the value the value pasted is not able to find the correct option and hence this is resulting in a Server side exception as we have few validations on this.
After looking into the code we found that
dhtmlXGridObject.prototype.pasteBlockFromClipboard (dhtmlx.js) invokes this.setValue = function(val) and this calls the below method.
dhtmlXCombo.prototype.getOption = function(value)
{
for(var i=0; i<this.optionsArr.length; i++)
if(this.optionsArr[i].value==value)
return this.optionsArr[i];
return null;
}
this.optionsArr is empty if the combo is not accessed atleast once .
Assuming “combo” access issue is resolved by useraction i.e. now optionsArr is populated with the options correctly , the value for field this.cell.combo_value is assigned in dhtmlx.js setValue method . But this assignment should happen only after calling getOption method which is not the case.
Could someone suggest if this is fixed in latest version on DHTMLX or is there any workaround for this.
Thanks,
Nishwanth