I have a RadGridView with the EditTriggers set to "CellClick". In a normal scenario, I can click on a cell, edit it and the cell will take up the new value as expected. However, very rarely when I click on a cell, I can edit it but the value doesn't persist. I can't make out a pattern for the issue and it occurs randomly. I am using the 2010.2.0714.35 version of the grid. I would like to know if this is a known issue and if it's been fixed in a later version of the grid.
Some more details:
Please let me know if I can provide more information.
Some more details:
- I can see an icon on the left hand side when I edit a row and it usually goes away when I switch to an another row. The rows with the "locked" cells have this "editing icon" all the time. That is, even if I switch to another row, the icon doesn't go away and I can no longer edit any cells in that row.
- If I click on any cell in the rows with this issue, the text in the cell momentarily disappears. I can still enter in new text but of course it doesn't persist. If I move out of the cell, the old value comes back. In a normal cell, when I click on the cell, it will still retain the existing text and I can edit it.
- I am not doing anything particularly fancy with the grid. I am hooking into the CellValidating event to convert any newly entered text to lower case (business requirement). Here's the code:
privatevoidGridView_CellValidating(objectsender, Telerik.Windows.Controls.GridViewCellValidatingEventArgs e){if(e.OldValue != e.NewValue){((System.Windows.Controls.TextBox)(e.EditingElement)).Text = e.NewValue.ToString().ToLower(System.Globalization.CultureInfo.InvariantCulture);IsEdited =true;}} - This is the markup of the grid:
EquipmentsGridView is inheriting from RadGridView and the RowEditEnded event isn't doing anything to the grid.<local:EquipmentsGridViewx:Name="uxStowList"ListType="StowList"Deleting="OnDelete"SelectionMode="Extended"CanUserInsertRows="True"ShowInsertRow="True"ShowGroupPanel="True"telerik:StyleManager.Theme="Office_Blue"IsFilteringAllowed="True"AutoExpandGroups="False"EditTriggers="CellClick"RowLoaded="ListRowLoaded"RowEditEnded="Gridview_RowEditEnded"ColumnWidthChanged="uxStowList_ColumnWidthChanged"DataLoaded="uxStowList_DataLoaded"HorizontalAlignment="Left"VerticalAlignment="Top"><telerik:RadGridView.Columns><custom:GridRowNumberHeader="#"Width="50"/><telerik:GridViewColumn><telerik:GridViewColumn.CellTemplate><DataTemplate><telerik:RadRibbonButtonSmallImage="Resources\CrossIcon.png"Command="telerikGrid:RadGridViewCommands.Delete"CommandParameter="{Binding}"Name="btnDeleteStowList"Click="btnDeleteStowList_Click"/></DataTemplate></telerik:GridViewColumn.CellTemplate></telerik:GridViewColumn><telerikGrid:GridViewSelectColumn></telerikGrid:GridViewSelectColumn></telerik:RadGridView.Columns></local:EquipmentsGridView>