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

Random lockups/freezes on editable rows

1 Answer 57 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rahul Ravindran
Top achievements
Rank 2
Rahul Ravindran asked on 19 Oct 2011, 08:58 PM
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:
  1. 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.
  2. 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.
  3. 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:
    private void GridView_CellValidating(object sender, 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;
                }
            }
  4. This is the markup of the grid:
    <local:EquipmentsGridView x: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:GridRowNumber Header="#" Width="50" />
                                           <telerik:GridViewColumn>
                                               <telerik:GridViewColumn.CellTemplate>
                                                   <DataTemplate>
                                                       <telerik:RadRibbonButton SmallImage="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>
    EquipmentsGridView is inheriting from RadGridView and the RowEditEnded event isn't doing anything to the grid.

Please let me know if I can provide more information.

1 Answer, 1 is accepted

Sort by
0
Yordanka
Telerik team
answered on 24 Oct 2011, 08:44 AM
Hi Rahul Ravindran,

We have tried to reproduce the issue locally but to no avail. We are not aware of this issue with Q2 2010 version (the one pointed by you). Could you isolate it in a sample project and send it to us (via support ticket) so we can check what is going wrong?
 
Greetings,
Yordanka
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Rahul Ravindran
Top achievements
Rank 2
Answers by
Yordanka
Telerik team
Share this question
or