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

RadGrid - Inserting Records with confirmation dialog on duplicates

1 Answer 136 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 27 Feb 2012, 08:38 PM
Hello,

I am using a RadGrid as part of a custom control (DNN module, actually) for contact management. I have a simple RadGrid set up with an external insert/edit form, and aside from the issue with allowing duplicate inserts, it's working perfectly.

When inserting new records, or updating existing records, we want to detect duplicate records (based only on fistname and lastname comparisons) and prompt/warn the user to ensure they are aware of the duplicate. 

In the case of no duplicates, the insert/update should just happen.
In the case of duplicates, the user should be asked if they want to insert anyway, or cancel.

Does RadGrid have any kind of built in support for this kind of workflow? Or am I going to have to replace the current submit button with my own method that makes an AJAX call to search for duplicates, and then react accordingly? I am trying to keep the code as simple as possible for long-term maintenance purposes.


Thanks,
Dave

1 Answer, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 01 Mar 2012, 12:51 PM
Hello Dave,

 The grid does not provide such built-in functionality out of the box. We have a popup confirmation on the GridButtonColumn but it is a standard client-side confirm dialog. If you need more complex functionality that will make an ajax request to the server and check for duplicate records you will need to add some custom logic to a button that will perform this function. You can use RadAjaxManager and confirm dialogs at your disposal.

Greetings,
Marin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Dave
Top achievements
Rank 1
Answers by
Marin
Telerik team
Share this question
or