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

ValidateItem is always false

0 Answers 45 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
CD
Top achievements
Rank 1
CD asked on 19 Jul 2011, 06:03 PM
I am copying the example here:
http://demos.telerik.com/silverlight/#DataForm/DataFormRIA

I am using the Northwind database and WCF RIA services.



Whenever I save an edit,  I check MyRadDataForm.ValidateItem()  and it is always false. If I ignore that and call

MyRadDomainDataSource.SubmitChanges() the edit is saved.


private void MyRadDataForm_EditEnding(object sender, Telerik.Windows.Controls.Data.DataForm.EditEndingEventArgs e)
{
    if (MyRadDataForm.ValidateItem())// Why False??
    {
        MyRadDomainDataSource.SubmitChanges();
    }
    else
    {
        System.Diagnostics.Debug.WriteLine("Invalid Item");
    }
}

No answers yet. Maybe you can help?

Tags
DataForm
Asked by
CD
Top achievements
Rank 1
Share this question
or