May 19, 2014, 3:09 PM
[CLOSED] [2.5] The whole page gets scrolled up when clicking a checkbox
Hello, I had the same issue with older versions of Ext.Net, but it was fixed with an override. The issue is described in this post:
http://forums.ext.net/showthread.php...he-document-up
The problem is after updating Ext.Net to the 2.5 release, the ValidationStatus override does no longer work, and the form keeps scrolling up everytime i click a CheckBox.
I have tried adding a 'debugger;' line to see what is going on, but it never reaches the onFieldValidation function:
http://forums.ext.net/showthread.php...he-document-up
The problem is after updating Ext.Net to the 2.5 release, the ValidationStatus override does no longer work, and the form keeps scrolling up everytime i click a CheckBox.
I have tried adding a 'debugger;' line to see what is going on, but it never reaches the onFieldValidation function:
Ext.ux.statusbar.ValidationStatus.override({
onFieldValidation: function (f, isValid) {
debugger;
var me = this,
msg,
formPanelBody = App.Objeto_FormPanel_Consulta.getBody(),
scroll = formPanelBody.getScroll();
if (!me.monitor) {
return false;
}
msg = f.getErrors()[0];
if (msg) {
me.errors.add(f.id, { field: f, msg: msg });
} else {
me.errors.removeAtKey(f.id);
}
this.updateErrorList();
if (me.errors.getCount() > 0) {
if (me.statusBar.getText() !== me.showText) {
me.statusBar.setStatus({
text: me.showText,
iconCls: me.errorIconCls
});
}
} else {
me.statusBar.clearStatus().setIcon(me.validIconCls);
}
formPanelBody.scrollTo('top', scroll.top);
formPanelBody.scrollTo('left', scroll.left);
}
});
Last edited by Daniil; May 28, 2014 at 4:26 AM.
Reason: [CLOSED]