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

[Solved] RadGridview For Silverlight RowEditEnded Method When I am inputting new entry and proceed to move

1 Answer 66 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Vinh
Top achievements
Rank 1
Vinh asked on 17 Sep 2010, 08:54 PM
RadGridview For Silverlight RowEditEnded Method

When I am inputting new entry and proceed to move to the next column by using the right arrow -> or clicking the next column (not clicking the next row yet), the RowEditEnded method sometimes fires unexpectedly. Is there a way for me to prevent that? Below is my block of code on this method.

if (e.EditAction == GridViewEditAction.Cancel)
            {
                return;
            }

if (e.EditOperationType == GridViewEditOperationType.Insert)
                {
                    //do something;
                }
                else if (e.EditOperationType == GridViewEditOperationType.Edit)
                {
                    //do something
                }

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 20 Sep 2010, 12:11 PM
Hi Vinh,

I was not able to reproduce the unexpected firing of the RowEditEnded event following the steps you have explained. However, in case it is appropriate for your project, you may use the "Handled" property of the arguments in the event and set it to True/ False, depending on your custom logic. 

private void playersGrid_RowEditEnded(object sender, GridViewRowEditEndedEventArgs e)
{
    e.Handled = true;
}

If this is not applicable in your project, I would need a bit more information for it so that I could provide you with a more suitable solution.

Regards,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Vinh
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or