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

Validation while celledit

2 Answers 79 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Nirmal
Top achievements
Rank 1
Nirmal asked on 26 Mar 2010, 04:01 PM
Hai,
     i am using radgridview. While editing the cell details i am using

radGridView_CellValidating

event.

In that,

 

void radGridView_CellValidating (object sender, Telerik.Windows.Controls.GridViewCellValidatingEventArgs e)

 

 

 

{
e.IsValid =

 

false;

 

e.ErrorMessage =

 

"Invalid Data(Some Message)";
}
It shows the error message when mouse over on the right top corner of tht red indication. But i need when focusing on that cell or immediate when error occurs(doesn't need tooltipservice). How can i do this?

Thanks in Advance.

 

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Nedyalko Nikolov
Telerik team
answered on 01 Apr 2010, 10:25 AM
Hi Nirmal,

Unfortunately with the current version of RadGridView control, this scenario is not supported. We plan to improve it and this will be the default behavior, but I cannot commit with any specific date or release when this feature will be ready. Meanwhile you can use data layer validation instead of UI validation in order to meet your goals. For more information you can take a look at this blog post.

Best wishes,
Nedyalko Nikolov
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.
0
Rahul
Top achievements
Rank 2
answered on 22 Sep 2011, 01:43 PM
I'm also facing the same problem. The link you provided is no longer working.
However error message is showing immediately when default validation is turned on but
if i give my own cell validations its not working.

Can please look into this issue again and let me know.

private void radLifeStyleDefault_CellValidating(object sender, GridViewCellValidatingEventArgs e)
        {
            if (e.Cell.Column.UniqueName == "ContactType")
            {
 
                if (e.NewValue.ToString() != "Call")
                {
                    e.IsValid = false;
                    e.ErrorMessage = "Enter Proper Call Attempt";
                }
                else
                {
                    e.IsValid = true;
                }
            }
        }

Tags
GridView
Asked by
Nirmal
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Rahul
Top achievements
Rank 2
Share this question
or