Problem in Pivot table Drop down list on column header

Case:-i am using a pivot functionality.it works fine.

it show me a three drop down on top of the grid and one for column.

i have a problem in column drop down list.

Problem is when i grid load it contain all value starting from ‘-select-’ by default.but when i select any of them for display column value.it display a value,but that drop down box value became empty.so i think it should not be empty.

On the other hand if a select any value from to the above three drop down is show a corresponding

list value and it also preserve the drop down list value.

Problem confirmed and fixed, please use attached js file instead of original one.

dhtmlxgrid_pivot.zip (2.62 KB)