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:
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:
- 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>