May 04, 2011, 10:04 AM
[CLOSED] CheckColumn in GridPanel
Hi!
I have a gridpanel with three checkcolumns editables; and i want to change this property when this field is doing databound; but i'm unable to do it.
How can i change IsEditable property in client-side?
I've to do it in databinding and when the user click's the other check with a simple client-side function.
Here is my gridpanel code:
I have a gridpanel with three checkcolumns editables; and i want to change this property when this field is doing databound; but i'm unable to do it.
How can i change IsEditable property in client-side?
I've to do it in databinding and when the user click's the other check with a simple client-side function.
Here is my gridpanel code:
<ext:GridPanel ID="grdNivelesOrganigrama" runat="server" StripeRows="false" Height="110" Border="false"
TrackMouseOver="false" EnableColumnMove="false" EnableColumnResize="false" EnableColumnHide="false">
<View>
<ext:GridView MarkDirty="false" HeadersDisabled="true" />
</View>
<Store>
<ext:Store ID="dsNivelesOrganigrama" runat="server" AutoLoad="false" WarningOnDirty="false">
<Proxy>
<ext:HttpProxy Url='<%# ViewData[ViewModel.ROUTE_URL_FILTRO_AGRUPACION]+"/TotalizacionesOrganigrama" %>' Method="GET" AutoDataBind="true" />
</Proxy>
<Reader>
<ext:JsonReader Root="data">
<Fields>
<ext:RecordField Name="Nivel" />
<ext:RecordField Name="Titulo" />
<ext:RecordField Name="Total" />
<ext:RecordField Name="Ruptura" />
</Fields>
</ext:JsonReader>
</Reader>
<BaseParams>
<ext:Parameter Name="rootCI" Value="#{cmbNivelesOrganigrama}.getValue()" Mode="Raw" />
<ext:Parameter Name="FiltroCI" Value="Millenium.Controls.FiltroAgrupacion.getFiltroCI()" Mode="Raw" />
<ext:Parameter Name="TipoFiltro" Value='<%# ViewData[FiltroParams.TIPO_FILTRO] %>' Mode="Value" AutoDataBind="true" />
</BaseParams>
<Listeners>
<Load Fn="Millenium.Controls.FiltroAgrupacion.onReloadGridNiveles" />
</Listeners>
</ext:Store>
</Store>
<ColumnModel runat="server" DefaultSortable="false">
<Columns>
<ext:Column ColumnID="Nivel" DataIndex="Nivel" Width="45" />
<ext:CheckColumn ColumnID="Titulo" DataIndex="Titulo" Width="40" Header="<%$ AppRecursos : sm_txt_titulo %>" Editable="true" />
<ext:CheckColumn ColumnID="Total" DataIndex="Total" Width="40" Header="<%$ AppRecursos : sm_txt_total %>" Editable="true" />
<ext:CheckColumn ColumnID="Ruptura" DataIndex="Ruptura" Width="55" Header="<%$ AppRecursos : sm_txt_ruptura %>" Editable="true" />
</Columns>
</ColumnModel>
<SelectionModel>
<ext:RowSelectionModel runat="server" SingleSelect="false" />
</SelectionModel>
Thanks in advance
Last edited by Daniil; May 05, 2011 at 2:03 PM.
Reason: [CLOSED]