I am trying to set the defualt value for a a Dropdown when adding a new row. However it doesn't select anything from the dropdown, is there a differant way i should be approaching this.
//Here is the datasource
var dateUnit= [
{ text: "Hours", value:1 },
{ text: "Days", value: 2},
];
//Here is the column portion
columns: [
{ field: "Unit", headerText: "Unit", textAlign: ej.TextAlign.Center, editType: ej.Grid.EditingType.Dropdown, dataSource: dateUnit, defaultValue: 1 }
]