Oct 03, 2013, 2:00 PM
[CLOSED] GridEditing - prevent empty entry
I have a date and text editor in an editable grid.
If user deletes entry, I want to tell them they can't, return focus to cell they were editing, and preserve the previous value...
Seems simple enough...can't seem to get there...
If user deletes entry, I want to tell them they can't, return focus to cell they were editing, and preserve the previous value...
Seems simple enough...can't seem to get there...
var EditHandlerMaturity= function (editor, e) {
if(e.field=='MaturityDate')
{
if (e.value==null)
{
NotifyContextDown('Ooops','You can only change the date. If you want to delete the entry all together, please use the delete icon to the right.',e.grid.el);
editor.cancelEdit(); ??
// e.grid.stopEditing(); ???
return;
}
}
Last edited by Daniil; Oct 08, 2013 at 6:49 AM.
Reason: [CLOSED]