saving the layout with:
let layout = (<any>$(‘#jqxDockingLayout’)).jqxDockingLayout(‘saveLayout’);
let json_layout:string = JSON.stringify(layout, null, 2);
restoring it with:
(<any>$(‘#jqxDockingLayout’)).jqxDockingLayout(‘loadLayout’, JSON.parse(json_layout));
I have one floatGroup dialog and when loading the data I get two?!?
this is what is saved for the floatGroup:
{
“type”: “floatGroup”,
“width”: 300,
“height”: 200,
“position”: {
“x”: 100,
“y”: 100
},
“items”: [
{
“type”: “layoutPanel”,
“title”: “Rates”,
“content”: “<div id=’9fdf5f34-7adf-886c-7cea-f723f760456e’></div>”,
“index”: 0
}
],
“index”: 1
}