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

[Solved] Showing modal RadWindow during CellValidating event

1 Answer 62 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.
Francois Lamy
Top achievements
Rank 1
Francois Lamy asked on 17 Dec 2009, 09:21 PM
During the CellValidating event for one of my cells I want to prompt the user for more information BEFORE I commit the edit.  To do this, I create a RadWindow object and call ShowDialog on it and set IsValid = false on the GridViewCellValidatingEventArgs object.  The problem is that the editor then receives focus back (because IsValid was false) and keeps the focus when my dialog shows.  Then when I click in my dialog, the cell gets RE validated, causing a second instance of my dialog to appear and focus goes back to the editor in the cell and... well, you can imagine where this is going.

Anyone have any ideas here?  I am using the internal build of 2009.Q3 SP1 (from 12/11).

1 Answer, 1 is accepted

Sort by
0
Accepted
Nedyalko Nikolov
Telerik team
answered on 21 Dec 2009, 09:27 AM
Hi Thomas Whittaker,

Unfortunately due to some platform (Silverlight) limitations we cannot stop the execution thread in order to wait for some user response similar to WPF. RadWindow modal mode is a little bit tricky, but this will not work in your case. You can use a regular MessageBox to show some information to the user.

All the best,
Nedyalko Nikolov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Francois Lamy
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Share this question
or