i am using KendoUi Grid to display the data on my page from a datasource .
Here is the Code for the same .
As u can u see i am using a Custom Pop Up editor to edit the records on my Grid.
Here is my Custom Pop Up
Now on my popup i am letting the user edit "Customer Name" ,"Facility Group Name" and "Description" and the "Status".
While updating i am checking whether the updated facility group name doesnt match with any of the already existing names,
Now what i want to achieve is once the facility group name is checked for any duplicacy the name should be updated but if there is any duplicacy the record should not get updated and the edit popup window should remain intact with the proper error message.
In my case the record is not being updated on duplicacy but the edit pop up window gets closed automatically.