Hi
Validating data on a property level causes a red rectagle around the cell but no error message is available.
Below an example and attached the snapshot.
and the code behind
I'm using WPF Q2 2010 SP1 on Windows 7.
Thanks
Ivano
Validating data on a property level causes a red rectagle around the cell but no error message is available.
Below an example and attached the snapshot.
<
Window
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
x:Class
=
"TestRadGridView.MainWindow"
Title
=
"MainWindow"
Height
=
"350"
Width
=
"525"
>
<
Grid
>
<
telerik:RadGridView
Name
=
"gridView"
/>
</
Grid
>
</
Window
>
and the code behind
using
System;
using
System.Collections.Generic;
using
System.Windows;
using
System.Windows.Documents;
namespace
TestRadGridView
{
public
partial
class
MainWindow : Window
{
public
MainWindow()
{
InitializeComponent();
gridView.ItemsSource = User.AsList();
}
}
class
User
{
private
string
_username;
public
string
Username
{
get
{
return
_username; }
set
{
if
( _username ==
null
) _username=value;
else
throw
new
Exception(
"Username can't be changed"
); }
}
public
string
Email {
get
;
set
; }
public
static
List<User> AsList()
{
List<User> list =
new
List<User>();
list.Add(
new
User() {Username=
"Username1"
, Email=
"username1@email"
});
list.Add(
new
User() {Username=
"Username2"
, Email=
"username2@email"
});
return
list;
}
}
}
I'm using WPF Q2 2010 SP1 on Windows 7.
Thanks
Ivano