Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Joe on Sep 30, 2009 18:56
open dhtmlx forum
GroupBy on null field

I get a javascript error when i edit a cell, which is within a group, that has the group name ""

_updateGroupView was being passed an undefined group.

I've fixed the issue on mine, but thought it worth mentioning.
My fix swaps empty "" for a " " group, which i see is done in other places, but not here.

Here's my fix.


in dhtmlxgrid_group.js line 178

this.attachEvent("onEditCell",function(stage,id,ind,val,oldval){

.....

} else if (stage==2 && val!=oldval) {
    this.updateGroups();
    var group_value = this.cells(id,this._gIndex).getValue();
    if (group_value==="") group_value = " ";
    this._updateGroupView(this._groups[group_value]);
}

.....


By the way, awesome product!
Answer posted by dhxSupport on Oct 01, 2009 09:37
This issue confirmed. We'll provide you fix as soon as possible.
Answer posted by dhxSupport on Oct 02, 2009 06:34
This issue was fixed and will be added at the next dhtmlxGrid version. If you need changes immediately please contact directly support@dhtmlx.com.