GridPanel CheckColumn problem

  1. #1

    GridPanel CheckColumn problem

    I have the following markup:

    <ext:Store ID="storePagos" runat="server">
                <ext:JsonReader ReaderID="IdCursoConcepto">
                        <ext:RecordField Name="IdCursoConcepto" />
                        <ext:RecordField Name="IdcConcepto" />
                        <ext:RecordField Name="Concepto" />
                        <ext:RecordField Name="Monto" />
                        <ext:RecordField Name="Activo" Type="Boolean" />
    <ext:GridPanel ID="gridPagos" runat="server" StoreID="storePagos" Height="150" StripeRows="true"
        Title="Conceptos configurados" Width="400px" ClicksToEdit="1">
                <ext:Column DataIndex="IdCursoConcepto" Hidden="true" ColumnID="IdCursoConcepto">
                <ext:Column DataIndex="IdcConcepto" Hidden="true" ColumnID="IdConcepto">
                <ext:Column DataIndex="Concepto" Header="Concepto" ColumnID="Concepto" Width="200px">
                <ext:Column DataIndex="Monto" Header="Monto" ColumnID="Monto" Width="70px">
                        <ext:NumberField ID="nfMontoGrid" runat="server">
                <ext:CheckColumn DataIndex="Activo" Header="Activo" ColumnID="Activo" Width="70px"
            <ext:RowSelectionModel SingleSelect="true">
    And am having problems when I trie to add records manually with this code:

    private void CargarTablaPagos(params object[] valores)
                if (valores != null &amp;&amp; valores.GetLength(0) > 0)
                    IDictionary<string, string> registro = new Dictionary<string, string>();
                    registro.Add("IdCursoConcepto", valores[0].ToString());
                    registro.Add("IdcConcepto", valores[1].ToString());
                    registro.Add("Concepto", valores[2].ToString());
                    registro.Add("Monto", valores[3].ToString());
                    registro.Add("Activo", valores[4].ToString());
    The problem is no matter wath value I put in "Activo" (true or false), in the gridPanel the checkbox is always checked. How can I solve this issue?

    Thanks in advance for the help.
  2. #2

    RE: GridPanel CheckColumn problem


    Thanks for pointing out the bug. Fixied. The fix will be available in next release.
    For fixinig current version you need to change signature of AddRecord method

    IDictionary<string, object> values

    IDictionary<string, string> values

    And remove '.ToString' callings from 'CargarTablaPagos' method

Similar Threads

  1. [CLOSED] CheckColumn in GridPanel
    By softmachine2011 in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Sep 18, 2012, 11:53 AM
  2. Replies: 0
    Last Post: Sep 26, 2011, 12:20 PM
  3. CheckColumn double click problem
    By Thiago Nogueira in forum 1.x Help
    Replies: 3
    Last Post: Nov 18, 2010, 12:10 PM
  4. Replies: 1
    Last Post: Nov 11, 2010, 12:19 PM
  5. Replies: 2
    Last Post: Jun 15, 2010, 7:07 AM

Posting Permissions