Hi,
Below scenario is what my problem.
I have a RadGridView in a silverlight page. when the user pressed AddNewItem button, the gridview will insert a row and focus to the first cell in the new row. After user input a value and pressed TAB, I need to load an item from database via RIA LoadOperation method. If the item not found in the database, the focus will not leave the first cell and show error message,if the item exists in database then assign the loaded item property to other cell and focus on next editable cell.
In my program I put the LoadOperation Code in RadGridView_CellValidating event. But the LoadOperation is asyn. call, before it return from LoadOperation, the CellValidating event finished, so that I can't validate the cell correctly.
How should I do?
Below scenario is what my problem.
I have a RadGridView in a silverlight page. when the user pressed AddNewItem button, the gridview will insert a row and focus to the first cell in the new row. After user input a value and pressed TAB, I need to load an item from database via RIA LoadOperation method. If the item not found in the database, the focus will not leave the first cell and show error message,if the item exists in database then assign the loaded item property to other cell and focus on next editable cell.
In my program I put the LoadOperation Code in RadGridView_CellValidating event. But the LoadOperation is asyn. call, before it return from LoadOperation, the CellValidating event finished, so that I can't validate the cell correctly.
How should I do?