Please try the code below to get the editor in 'onBeforeEdit' event.
$('#pg').propertygrid({
onBeforeEdit:function(index,row){
var t = $(this);
setTimeout(function(){
var ed = t.propertygrid('getEditor', {
index: index,
field: 'value'
});
console.log(ed)
},0);
}
})