Check if layout view exist or not

dear all,

how to check if layout view is already exist or not?

thanks

Hello,

var dhxLayout;

dhxLayout = new dhtmlXLayoutObject(…);

function exists(){
return dhxLayout?true:false
}

what i mean is a layout specific view, just like

layout.cells('a').view('view1').attachGrid();

how to check if cells(‘a’).view1 is exist or not

try getView method:

If(layout.cells(‘a’).getView(‘view1’)){

}