May 04, 2015, 3:50 PM
[CLOSED] Disabling/Enabling a column on checkbox selection/deselection
I have a gridpanel with 2 columns, One is a normal column field and the other is an editor field which i have inside a component column. On checkbox check and uncheck i want to enable and disable the columns. I could get this done on checkbox selection model's select and deselect handler for Component column. But am not being able to do it for the normal columns. Please help in disabling/enabling a normal column on checkbox selection/deselection.
this is my columns code:
this is my columns code:
<ColumnModel ID="ColumnModel1">
<Columns>
<ext:Column ID="Column1" runat="server" DataIndex="Name" Text="Tier2" Width="270" Hideable="false">
</ext:Column>
<ext:ComponentColumn ID="ComponentColumn2" Namespace="App" runat="server" Editor="true" DataIndex="DisplayName" Width="270" Text="Name As On Metric Upload File" Align="Center">
<Component>
<ext:TextField ID="TextField2" runat="server" Namespace="App">
<Listeners>
<Render Fn="disableTier2DisplayName"></Render>
</Listeners>
</ext:TextField>
</Component>
</ext:ComponentColumn>
</Columns>
</ColumnModel>
below is the code am calling on checkbox selection model's deselect handler for disabling the component column: function disableDisAssociatedEmployee3() {
App.mainContentPlaceholder_ComponentColumn2.getComponent(record).disable();
}
Like the way I am accessing component column for disabling, how do i access Column1 to disable it.
Last edited by Daniil; May 13, 2015 at 8:23 AM.
Reason: [CLOSED]