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

[Solved] GridViewComboBoxColumn Validation Gfx

2 Answers 97 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.
Phillip Garrett
Top achievements
Rank 1
Phillip Garrett asked on 01 Sep 2010, 01:29 PM
Hi,

I'm having trouble with the default validation graphics that come with GridViewComboBoxColumn.

There appears to be two validation red outlines rendered on the grid (see attached image).

Is there a way to supress this? as it looks untidy

Thanks,

Phill

2 Answers, 1 is accepted

Sort by
0
Phillip Garrett
Top achievements
Rank 1
answered on 02 Sep 2010, 09:54 AM
I've managed to avoid this graphical duplication by handeling the error myself.

<telerik:RadGridView CellValidating="CellValidating" />

private void CellValidating(object sender, GridViewCellValidatingEventArgs e)
{
  e.IsValid = true;
  if (e.NewValue == null)
  {
    e.IsValid = false;
    e.ErrorMessage = "A valid entry is required";
  }
}

This overwrites whatever gets auto generated on a binding error due to invalid entries - and only one validation graphic is rendered (see attached image).

Would be nice if I didn't have to do this tho, and it worked out of the box :)

Regards,

Phill
0
Nedyalko Nikolov
Telerik team
answered on 06 Sep 2010, 09:33 AM
Hello Phillip Garrett,

Indeed this one possible and very nice solution, however you can download our latest internal build (uploaded on 3 Sep 2010), since this issue is already fixed.
Let me know how it works on your end.

Sincerely yours,
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
Tags
GridView
Asked by
Phillip Garrett
Top achievements
Rank 1
Answers by
Phillip Garrett
Top achievements
Rank 1
Nedyalko Nikolov
Telerik team
Share this question
or