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

[Solved] Check for existing record

1 Answer 134 Views
Grid
This is a migrated thread and some comments may be shown as answers.
daniel coppee
Top achievements
Rank 1
daniel coppee asked on 28 Mar 2008, 05:17 PM
When someone insert a new record, how can you check whether this allready exist (validate?) before submitting it to the database?

Thanks

Daniel

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 31 Mar 2008, 02:48 PM
Hello Daniel,

If you ensure that the new records in the source are created with unique id internally, there should be no duplicate entries with the same key field. If you want to perform some custom validation for the rest of the new fields, consider doing that server-side inside the InsertCommand handler before committing the insert operation.
 
Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
daniel coppee
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or