PDA

View Full Version : ComponentColumn OverOnly column disappears on sort



shijisebastian
Apr 16, 2015, 8:29 PM
23861Hi,
I've a ComponentColumn with OverOnly=true. The problem I'm having is if I sort any other column from the gridpanel, I loose the ComponentColumn values (I've two button controls inside the ComponentColumn). If I remove OverOnly property, no issues - please help.

Even the sample on the website has the same issue: http://examples.ext.net/#/GridPanel/ComponentColumn/Over_Editor/

<ext:ComponentColumn runat="server" OverOnly="true" Width="140" DataIndex="FileType" Text="Include Action" SaveOnChange="true">
<Component>
<ext:Container runat="server" Layout="HBoxLayout" >
<Items>
<ext:Button runat="server" Text="Link" Icon="LinkAdd" ID="btnIncludeLink">
<Listeners>
<Click Handler="IncludeAsset(this.container.component.record.data. FullFileName, 1);" />
</Listeners>
</ext:Button>
<ext:Button runat="server" Text="Object" Icon="Add" ID="btnIncludeObject">
<Listeners>
<Click Handler="IncludeAsset(this.container.component.record.data. FullFileName, 2);" />
</Listeners>
</ext:Button>
</Items>
</ext:Container>
</Component>

<Renderer Handler="metadata.style='color:gray;'; return 'Include Action';" />
<Listeners>
<Bind Fn="ConfigCombo" />
</Listeners>
</ext:ComponentColumn>

Thanks
SS