Hi there,
I have a Grid displaying Documents with allowEditing = true and the Edit button added to the toolbar
I want to override the default behaviour of the DoubleClickEvent which switches the selected row to edit mode, instead I have added my own double click event where the selected document gets downloaded.
Instead of inline editing, or the default Dialog, on the Edit button click I want to display my own dialog for editing.
The Edit button now display the Document Details form for editing.
And the double-click event now downloads the document for the user BUT it does leave the Grid in in-line editing mode which I don't want.
In my double-click event I have tried setting args.cancel = true; and also calling DocumentsGrid.endEdit();
In the double-click event though for DocumentsGrid.isEdit it is returning false so calling endEdit() is having no effect.
So in short in the double click event I really need to cancel the edit mode
I hope that I have explained the problem clearly
Many thanks James