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

[Solved] How to trigger cell visual error state?

1 Answer 95 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.
Kevin
Top achievements
Rank 1
Kevin asked on 11 Jan 2010, 08:03 AM
i have one case that I need to be able to trigger cell visual error state with tooltip as what it can be done during CellValidating event.
                        e.ErrorMessage = "ERROR: Column {" + e.Cell.DataColumn.Header + "} cannot be blank."; //set the error massage
                        //make it invalid, this will lock user in cell and display the error message
                        e.IsValid = false;

The case is that I need to validate the input data in backend via WCF service. As a result, the result is coming back asynchronously. When the result indicated that the input data is bad, i would like to be able to raise the cell visual error state and display the error tooltip. When the result is back, it is not in CellValidating function anymore. So GridViewCellValidatingEventArgs is not available. As a result, there is no e.ErrorMessage  and e.IsValid to be used. What will be other way to do it to have the same error effect?

1 Answer, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 13 Jan 2010, 02:04 PM
Hello Kevin,

Unfortunately with the current version of RadGridView there is no way to achieve asynchronous validation. Silverlight 4 will introduce some improvements regarding this, so we will reconsider our validation mechanism in order to support such async scenarios (of course only for SL 4 versions).

Kind regards,
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
Kevin
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Share this question
or