PDA

View Full Version : Viewport portlet problem



bigssam
11 Mar 2011, 10:21 AM
hi guys

M trying to add protlet items by javascript (after deleting them by plugin using tools property) to my viewport object by using the following lines :


viewport.getComponent(0).items.items[1].add(portltObjet_1);
viewport.doLayout();
viewport.syncSize();I don't have any probleme when m adding protlets containing HTML content like :


var portltObjet_1 = [{
title: "title",
tools : toolsMonrPofil,
collapsedCls:'x-panel-collapsed',
layout: 'fit',
cls:'backgroundteste',
html: 'some HTML code'
}];
but when it s about a portlet which contains sub items usin object like :


var portlet_3 = [{
title: "title",
tools : toolsMesLM,
layout: 'fit',
cls:'backgroundteste',
items: new portleObject() // object returning dataview based on xtemplate
}];my portlet widget is loaded in the container but whitout data even i reload the store of the data view, and the console display the following message :

b.getDomPositionEl().dom is undefined;

Need Help plz guys