PDA

View Full Version : [CLOSED] Grid Panel RowEditing Plugin : AutoCancel does not work without Error Summary



RajivDutt
May 19, 2014, 1:13 PM
I am trying to use Row editing plugin and want prevent user going to other row, until the editing is complete.

The given code works fine, but it shows a window with error summary, which I don't like. If I turn error summary false, then AutoCancel property does not work at all.



Html.X().PagingToolbar().ID("editList"))
.Plugins(
Html.X().RowEditing().AutoCancel(false).ErrorSumma ry(true)



Is there any way around for this?

Reference URL : http://examples2.ext.net/#/GridPanel/Plugins/RowEditor/

Thanks,
Rajiv Dutt

Daniil
May 19, 2014, 2:25 PM
Hi @RajivDutt,

I can suggest this override to achieve the requirement.

Ext.grid.RowEditor.override({
beforeEdit: function() {
var me = this,
scrollDelta;

//if (me.isVisible() && me.errorSummary && !me.autoCancel && me.isDirty()) {
if (me.isVisible() && !me.autoCancel && me.isDirty()) {
scrollDelta = me.getScrollDelta();
if (scrollDelta) {
me.scrollingViewEl.scrollBy(0, scrollDelta, true)
}
//me.showToolTip();
return false;
}
}
});