Feb 17, 2016, 10:07 AM
[CLOSED] Strange problem defining CommandColumns in Bin Tag of non-visible Container
Defining CommandColumns in Bin-Tag of a non-visible Container like this
The strange thing is in another usercontrol it works:
<ext:Container ID="ItemByContractListContainer" runat="server" Visible="false">
<Bin>
<ext:XTemplate ID="PurchasePeriodTemplate" runat="server">
<Html>
<tpl for=".">
{LastCheck_PurchasePeriodStart:date("d.m.Y")} - {LastCheck_PurchasePeriodEnd:date("d.m.Y")}
</tpl>
</Html>
</ext:XTemplate>
<ext:ImageCommandColumn ID="SCColumn" runat="server">
<PrepareCommand Fn="prepareItemListGridCommand"/>
<Commands>
<ext:ImageCommand CommandName="ShowSC"/>
</Commands>
<Listeners>
<Command Fn="handleItemListGridCommand"/>
</Listeners>
</ext:ImageCommandColumn>
<ext:ImageCommandColumn ID="DCColumn" runat="server">
<PrepareCommand Fn="prepareItemListGridCommand"/>
<Commands>
<ext:ImageCommand CommandName="ShowDC"/>
</Commands>
<Listeners>
<Command Fn="handleItemListGridCommand"/>
</Listeners>
</ext:ImageCommandColumn>
</Bin>
<Content>
<Contract:AddItem ID="AddItem" runat="server"/>
</Content>
<Items>
</Items>
</ext:Container>
leads to the following error:[{contentHtml:function(){Ext.net.append(Ext.getBody(),["
"," ","
","
Can you tell me what this error is about or how to fix it!?The strange thing is in another usercontrol it works:
<ext:Container ID="ItemListPortletContainer" runat="server" Visible="False">
<Bin>
<ext:ImageCommandColumn ID="SCColumn" runat="server">
<PrepareCommand Fn="prepareItemListGridCommand"/>
<Commands>
<ext:ImageCommand CommandName="ShowSC"/>
</Commands>
<Listeners>
<Command Fn="handleItemListGridCommand"/>
</Listeners>
</ext:ImageCommandColumn>
<ext:ImageCommandColumn ID="DCColumn" runat="server">
<PrepareCommand Fn="prepareItemListGridCommand"/>
<Commands>
<ext:ImageCommand CommandName="ShowDC"/>
</Commands>
<Listeners>
<Command Fn="handleItemListGridCommand"/>
</Listeners>
</ext:ImageCommandColumn>
<ext:XTemplate ID="PurchasePeriodTemplate" runat="server">
<Html>
<tpl for=".">
{LastCheck_PurchasePeriodStart:date("d.m.Y")} - {LastCheck_PurchasePeriodEnd:date("d.m.Y")}
</tpl>
</Html>
</ext:XTemplate>
</Bin>
</ext:Container>
The only difference between the usercontrols is that the one which works is used inside an ext:Window Control and the other one inside an ext:Portal.
Last edited by fabricio.murta; Mar 22, 2016 at 11:19 PM.
Reason: no user feedback for 7+ days