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

[Solved] Events fire out of order

1 Answer 110 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.
Marjorie
Top achievements
Rank 1
Marjorie asked on 26 Oct 2010, 05:02 PM
If you place a RadTreeView on a SL form, then add a RadGridView on the same form. Then create events for OnSelectionChange for the tree, CellEditEnded for the GridView, and LostFocus on the GridView. Now put break points on the events.

When a user is in the grid, makes an edit to the cell, then clicks another leaf on the tree without leaving or committing the cell in the grid. The OnSelectionChange fires first. It should fire last.

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 28 Oct 2010, 02:41 PM
Hello Marjorie,

This is how RadGridView works - when you edit a cell, the only way for the gridview to understand when to fire the CellEditEnded event is the LostFocus event. So, you click outside the gridview (on a tree node) - this fires the SelectionChanged of the TreeView and the gridview receives the LostFocus event. This instructs the gridview to fire the CellEditEnded event.

Let me know more about your scenario so we can help you.

All the best,
Veselin Vasilev
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
Marjorie
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or