Hey,
you can try this -
webix.ui({
view:"window",
id:"editWindow",
head:'Edit',
modal:true,
height:500,
width:500,
body:{
view:"form",
id:"form",
scroll:false,
elements:[
{ view:"text"},
{
view:"button",
value:"Close",
click : function(){
$$('editWindow').hide();
}
}
],
}
});
webix.ui({
rows:[
{ type:"header", template:"Preview" },
{ view:"resizer" },
{ view:"datatable",
id:'grid1',
select:true,
editaction:"dblclick",
columns:[{id:"name", header:"name", editor:"popup"}],
data:[{id:1,name:"John"}],
on : {
"onItemDblClick" : function(id, ev){
$$("editWindow").show(ev);
$$("editWindow").getBody().focus();
},
},
"onAfterSelect" : function(data, preserve){
$('form').bind('grid1');
}}
]
});