Oct 25, 2013, 1:01 PM
[CLOSED] Set a ComponentColumns Textfield ReadOnly = false / Java Script
Hi all
I have the following Grid Definition
It's Friday and I got no Idea how to do that :-(
Peter
I have the following Grid Definition
<ext:FieldSet ID="PreviousDocumentsFieldSet" runat="server" Title="PreviousDocuments" Collapsible="true" Collapsed="false">
<Items>
<ext:GridPanel runat="server" ID="gridPreviousDocuments" AutoScroll="true" Height="100px">
<Store>
<ext:Store ID="storePreviousDocuments" runat="server">
<Model>
<ext:Model ID="modelPreviousDocuments" runat="server">
<Fields>
<ext:ModelField Name="Id" />
<ext:ModelField Name="NewId" />
<ext:ModelField Name="PreviousDocumentTypeFull" />
<ext:ModelField Name="PreviousDocumentReference" />
<ext:ModelField Name="AdditionalInformation" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<ColumnModel runat="server">
<Columns>
<ext:Column ID="colPreviousDocumentTypeId" runat="server" Cls="" Text="Id" Hidden="true" DataIndex="Id" />
<ext:Column ID="colPreviousDocumentTypeNewId" runat="server" Cls="" Text="NewId" Hidden="true" DataIndex="NewId" />
<ext:ComponentColumn ID="colPreviousDocumentTypeFull" runat="server" Editor="true" DataIndex="PreviousDocumentTypeFull" Text="DocumentType">
<Component>
<codeBox:CodeComboBox runat="server" ID="cboDocumentType" />
</Component>
</ext:ComponentColumn>
<ext:ComponentColumn ID="colPreviousDocumentReference" runat="server" Text="DocumentReference" DataIndex="PreviousDocumentReference">
<Component>
<ext:TextField ID="txtPreviousDocumentReference" runat="server" ReadOnly="True" />
</Component>
</ext:ComponentColumn>
<ext:Column ID="colAdditionalInformation" runat="server" Text="AdditionalInfo" DataIndex="AdditionalInformation" Flex="1" />
</Columns>
</ColumnModel>
</ext:GridPanel>
</Items>
<Listeners>
<BoxReady Handler="collapseFieldset('PreviousDocumentsFieldSet')" />
<Expand Handler="refreshGrid('gridPreviousDocuments')" Single="true" Delay="100" />
</Listeners>
</ext:FieldSet>
Now I need to set the Field 'txtPreviousDocumentReference' to ReadOnyl 'false'. I have to do this in Javascript...It's Friday and I got no Idea how to do that :-(
Peter
Last edited by Daniil; Oct 25, 2013 at 2:09 PM.
Reason: [CLOSED]