This is a migrated thread and some comments may be shown as answers.

RadGrid EditMode Modal Popup Not Closing And shows the following message: String was not recognized as a valid boolean

1 Answer 102 Views
Grid
This is a migrated thread and some comments may be shown as answers.
William
Top achievements
Rank 1
William asked on 13 Jan 2011, 07:31 PM
Hi,

I am having a troublesome issue with the RadGrid in the PopUp Edit mode.  I have a RadGrid that allows users to enter data into the grid via the modal popup edit style form.  My issue is:
  1. The modal pop-up does not close/go away after the user update a record and inmediatelly shows the following message: "String was not recognized as a valid boolean" but the record was updated successfully into the database.
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="oPeriodos" AllowPaging="True" AllowSorting="True" 
            AutoGenerateColumns="False" Culture="Spanish (Mexico)" GridLines="None" Skin="Hay" PageSize="12" CellPadding="3" Width="800px" AllowAutomaticDeletes="True" ShowFooter="True"
             AllowAutomaticUpdates="true" >
        <MasterTableView DataSourceID="oPeriodos" CellPadding="3" Width="800px" DataKeyNames="OIG003_ID_BI" EditMode="PopUp">
            <Columns>
                 <telerik:GridEditCommandColumn EditText="Editar">
                      
                </telerik:GridEditCommandColumn>
                <telerik:GridBoundColumn DataField="OIG003_ID_BI" UniqueName="ID" HeaderText="ID" Resizable="False" Visible="false">
                    <HeaderStyle Font-Bold="True" HorizontalAlign="Center" VerticalAlign="Middle" />
                    <ItemStyle Width="100px" />
                    </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="OIG001_Mes_ST" UniqueName="Mes" HeaderText="Mes" Resizable="False">
                    <HeaderStyle Font-Bold="True" HorizontalAlign="Center" VerticalAlign="Middle" />
                    <ItemStyle Width="100px" />
                    </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="OIG003_Anio_IN" UniqueName="Ano" HeaderText="Año" Resizable="False">
                    <HeaderStyle Font-Bold="True" HorizontalAlign="Center" VerticalAlign="Middle" />
                    <ItemStyle Width="100px" />
                    </telerik:GridBoundColumn>
                <telerik:GridCheckBoxColumn DataField="OIG003_Cerrado_BO" UniqueName="Cerrado" HeaderText="Cerrado" Resizable="false">
                      <HeaderStyle Font-Bold="True" HorizontalAlign="Center" VerticalAlign="Middle" />
                    <ItemStyle Width="100px"  HorizontalAlign="Center" VerticalAlign="Middle"/>
                </telerik:GridCheckBoxColumn>
                <telerik:GridBoundColumn DataField="OIG003_FechaCierre_DT" UniqueName="FechaCierre" HeaderText="Fecha de Apertura / Cierre" Resizable="False" DataFormatString="{0:MM/dd/yyyy hh:mm:ss}" >
                    <HeaderStyle Font-Bold="True" HorizontalAlign="Center" VerticalAlign="Middle" />
                    <ItemStyle Width="150px" />
                    </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="OSEG001_NOMBRE_ST" UniqueName="Usuario" HeaderText="Usuario" Resizable="False">
                    <HeaderStyle Font-Bold="True" HorizontalAlign="Center" VerticalAlign="Middle" />
                    <ItemStyle Width="300px" />
                    </telerik:GridBoundColumn>
                 <telerik:GridButtonColumn ConfirmText="¿Confirma la eliminación del Tipo de Cambio Seleccionado?" ConfirmDialogType="RadWindow"
                        ConfirmTitle="Eliminar" ButtonType="ImageButton" CommandName="Delete" Text="Eliminar"
                        UniqueName="DeleteColumn">
                        <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
                    </telerik:GridButtonColumn>
  
            </Columns>
            <EditFormSettings InsertCaption="Cerrar Periodo" CaptionFormatString="Periodo: {0}"
                CaptionDataField="OIG003_ID_BI" EditFormType="Template" PopUpSettings-Modal="true">
                <FormTemplate>
                    <table id="Table1" cellspacing="1" cellpadding="1" width="250" border="0" runat="server">
                        <tr>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Cerrado:
                            </td>
                            <td>
                                <asp:CheckBox ID="chkCerrado" runat="server" Checked='<%# Bind("OIG003_Cerrado_BO") %>' />
                            </td>
                        </tr>
                        
                    </table>
                    <table style="width: 100%">
                        <tr>
                            <td align="right" colspan="2">
                                <asp:Button ID="Button1" Text="Actualizar" 
                                    runat="server" CommandName="Update" CausesValidation="false" >
                                </asp:Button
                                <asp:Button ID="Button2" Text="Cancelar" runat="server" CausesValidation="False" CommandName="Cancel">
                                </asp:Button>
                            </td>
                        </tr>
                    </table>
                </FormTemplate>
            </EditFormSettings>
  
            <CommandItemSettings ExportToPdfText="Export to Pdf" />
              
       
        </MasterTableView>
         <ClientSettings>
            <ClientEvents OnRowDblClick="RowDblClick" />
        </ClientSettings>
     </telerik:RadGrid>

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 17 Jan 2011, 12:54 PM
Hello William,

Please, refer to the other forum ticket post which you have opened on the same matter. To avoid duplicate posts, I suggest we continue the communication there.

Best wishes,
Pavlina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
William
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or