Sep 21, 2010, 5:24 PM
[CLOSED] locking grid view in right side?
could it possible lock column in right side of gridpanel?
<ext:GridPanel
ID="MainGridPanel"
runat="server"
StripeRows="true"
Header="false"
Title="Title"
TrackMouseOver="true"
Height="800"
StoreID="MainStore">
<ColumnModel ID="ColumnModel1" runat="server">
<Columns>
<ext:RowNumbererColumn />
<ext:Column ColumnID="HOCODE" Header="HOCODE" DataIndex="HOCODE" Hidden="true" />
<ext:Column ColumnID="Reference" Header="Reference" DataIndex="Reference" Width="120" />
<ext:Column ColumnID="Date" Header="Date" DataIndex="Date" Width="100" />
<ext:Column ColumnID="Project" Header="Project Name" DataIndex="Project" Width="120">
<Commands>
<ext:ImageCommand CommandName="cmdProject" Icon="TableMultiple" />
</Commands>
</ext:Column>
<ext:Column ColumnID="Category" Header="Category" DataIndex="Category" Width="120">
<Commands>
<ext:ImageCommand CommandName="cmdCategory" Icon="TableMultiple"/>
</Commands>
</ext:Column>
<ext:Column ColumnID="Department" Header="Department" DataIndex="Department" Width="120">
<Commands>
<ext:ImageCommand CommandName="cmdDepartment" Icon="TableMultiple" />
</Commands>
</ext:Column>
<ext:Column ColumnID="StartTime" Header="Start Time" DataIndex="StartTime" Width="100">
<Commands>
<ext:ImageCommand CommandName="cmdStartTime" Icon="Clock" />
</Commands>
</ext:Column>
<ext:Column ColumnID="EndTime" Header="End Time" DataIndex="EndTime" Width="100">
<Commands>
<ext:ImageCommand CommandName="cmdEndrtTime" Icon="Clock" />
</Commands>
</ext:Column>
<ext:Column ColumnID="Hours" Header="Hours" DataIndex="Hours" Width="120" Align="Right" />
<ext:Column ColumnID="RateType" Header="Rate Type" DataIndex="RateType" Width="120">
<Commands>
<ext:ImageCommand CommandName="cmdRateType" Icon="CalculatorEdit" />
</Commands>
</ext:Column>
<ext:Column ColumnID="Function" Header="Function" DataIndex="Function" Width="120">
<Commands>
<ext:ImageCommand CommandName="cmdFunction" Icon="TableEdit" />
</Commands>
</ext:Column>
<ext:Column ColumnID="Notes" Header="Notes" DataIndex="Notes" Width="160">
<Commands>
<ext:ImageCommand CommandName="cmdNotes" Icon="NoteEdit" />
</Commands>
</ext:Column>
<ext:CheckColumn ColumnID="ReChargeable" Header="ReChargeable" Width="120" />
<ext:CheckColumn ColumnID="CreditSalaryAccount" Header="Credit Salary Account" Width="140" />
<ext:Column ColumnID="Client" Header="Client" DataIndex="Client" Width="140">
<Commands>
<ext:ImageCommand CommandName="cmdClient" Icon="TableEdit" />
</Commands>
</ext:Column>
<ext:Column ColumnID="Rate" Header="Rate" DataIndex="Rate" Width="100" Align="Right"/>
<ext:Column ColumnID="Amount" Header="Total" Width="100" Align="Right" Locked="true"/>
<ext:Column ColumnID="ChargingStatus" Header="Charging Status" Width="120" Align="Right" Locked="true">
<Commands>
<ext:ImageCommand CommandName="cmdChargingStatus" Icon="TableMultiple" />
</Commands>
</ext:Column>
<ext:Column ColumnID="Status" Header="Status" Width="120" Align="Right" Locked="true">
<Commands>
<ext:ImageCommand CommandName="cmdStatus" Icon="TableMultiple" />
</Commands>
</ext:Column>
</Columns>
</ColumnModel>
<View>
<ext:LockingGridView runat="server" />
</View>
<BottomBar>
<ext:PagingToolbar ID="PagingToolbar2" runat="server" PageSize="25" StoreID="MainStore" />
</BottomBar>
</ext:GridPanel>
Last edited by geoffrey.mcgill; Sep 21, 2010 at 9:34 PM.
Reason: [CLOSED]