Hello, I have a problem with datagrid and EditMode="InPlace", I'm using code behind for update, so when the data pass to the method, the row to update is the correct, but, the new data don't, the data is old. I attached the code.
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnablePageHeadUpdate="false"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="rgSocios"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="rgSocios" /> |
| <telerik:AjaxUpdatedControl ControlID="Label1" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManager> |
| <telerik:RadGrid ID="rgSocios" runat="server" ShowStatusBar="True" |
| Skin="Windows7" Visible="False" AllowAutomaticUpdates="True" AutoGenerateEditColumn="False" |
| GridLines="None" PageSize="7" AllowPaging="true" EnableViewState="true" |
| OnDataBound="rgSocios_DataBound" OnLoad="rgSocios_OnLoad" OnUpdateCommand="rgSocios_UpdatedCommand"> |
| <MasterTableView NoMasterRecordsText="No se encontraron socios para este agente" |
| CommandItemDisplay="Top" AutoGenerateColumns="False" AllowSorting="True" EditMode="InPlace" DataKeyNames="numIdSocio"> |
| <AlternatingItemStyle BackColor="#E0E0E0" /> |
| <PagerStyle Mode="NextPrevNumericAndAdvanced" /> |
| <CommandItemSettings |
| ShowExportToWordButton="true" |
| ShowExportToExcelButton="true" |
| ShowExportToCsvButton="true" |
| ShowExportToPdfButton="true" |
| ShowAddNewRecordButton="false" |
| ExportToCsvText="Exportar a CSV" |
| ExportToExcelText="Exportar a Excel" ExportToPdfText="Exportar a PDF" |
| ExportToWordText="Exportar a Word" RefreshText="Refrescar" |
| /> |
| <Columns> |
| <telerik:GridBoundColumn DataField="codigoCompania" UniqueName="idCompania" HeaderText="CompañÃa" HeaderStyle-HorizontalAlign="Center" > |
| <HeaderStyle HorizontalAlign="Center" /> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="fechaActualizacion" UniqueName="fechaActualizacion" HeaderText="Fecha Actualización" HeaderStyle-HorizontalAlign="Center" > |
| <HeaderStyle HorizontalAlign="Center" /> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="numIdIntermediario" UniqueName="numIdIntermediario" HeaderText="Número Identificación Intermediario" HeaderStyle-HorizontalAlign="Center" > |
| <HeaderStyle HorizontalAlign="Center" /> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="nombreSocio" UniqueName="nombreSocio" HeaderText="Nombre Socio" HeaderStyle-HorizontalAlign="Center" > |
| <HeaderStyle HorizontalAlign="Center" /> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="numIdSocio" UniqueName="numIdSocio" HeaderText="Numero Identificación Socio" HeaderStyle-HorizontalAlign="Center" > |
| <HeaderStyle HorizontalAlign="Center" /> |
| </telerik:GridBoundColumn> |
| </Columns> |
| <RowIndicatorColumn><HeaderStyle Width="20px" /></RowIndicatorColumn> |
| <ExpandCollapseColumn><HeaderStyle Width="20px" /></ExpandCollapseColumn> |
| </MasterTableView> |
| <ClientSettings> |
| <ClientEvents OnRowClick="RowClick" OnRowDblClick="RowDblClick" OnGridCreated="GridCreated" OnCommand="GridCommand" /> |
| </ClientSettings> |
| </telerik:RadGrid> |