PDA

View Full Version : row editing Grid - errorSummary



masoud_tamizy
28 Jan 2012, 10:12 AM
Hi
i have a grid with row editing plugin .
when i set errorSummary Property to false , error tooltip appears again !!!
how can i do to prevent this tooltip ???

josephkirubakaran
28 Jan 2012, 10:44 AM
There are two tooltips in this scenario:

1. Error summary tooltip
2. Quick tip for validation errors.

first one - Error summary tooltip can be removed by setting errorSummary as false. Similarly quick tip can be disabled globally or you can remove the validation for that field.

Hope this helps!

masoud_tamizy
28 Jan 2012, 10:49 AM
There are two tooltips in this scenario:

1. Error summary tooltip
2. Quick tip for validation errors.

first one - Error summary tooltip can be removed by setting errorSummary as false. Similarly quick tip can be disabled globally or you can remove the validation for that field.

Hope this helps!
i need tooltips in that page but i set errorSummary property of my "row editor" to false !!!
how can i do it ?

josephkirubakaran
28 Jan 2012, 11:07 AM
when i tried to set errorSummary as false am not getting that error summary tooltip.


Ext.create('Ext.data.Store', {
storeId:'simpsonsStore',
fields:['name', 'email', 'phone'],
data: [
{"name":"Lisa", "email":"lisa@simpsons.com", "phone":"555-111-1224"},
{"name":"Bart", "email":"bart@simpsons.com", "phone":"555--222-1234"},
{"name":"Homer", "email":"home@simpsons.com", "phone":"555-222-1244"},
{"name":"Marge", "email":"marge@simpsons.com", "phone":"555-222-1254"}
]
});

Ext.create('Ext.grid.Panel', {
title: 'Simpsons',
store: Ext.data.StoreManager.lookup('simpsonsStore'),
columns: [
{header: 'Name', dataIndex: 'name', editor: 'textfield'},
{header: 'Email', dataIndex: 'email', flex:1,
editor: {
xtype: 'textfield',
allowBlank: false
}
},
{header: 'Phone', dataIndex: 'phone'}
],
selType: 'rowmodel',
plugins: [
Ext.create('Ext.grid.plugin.RowEditing', {
clicksToEdit: 1,
errorSummary:false
})
],
height: 200,
width: 400,
renderTo: Ext.getBody()
});

masoud_tamizy
28 Jan 2012, 11:30 PM
when i tried to set errorSummary as false am not getting that error summary tooltip.


Ext.create('Ext.data.Store', {
storeId:'simpsonsStore',
fields:['name', 'email', 'phone'],
data: [
{"name":"Lisa", "email":"lisa@simpsons.com", "phone":"555-111-1224"},
{"name":"Bart", "email":"bart@simpsons.com", "phone":"555--222-1234"},
{"name":"Homer", "email":"home@simpsons.com", "phone":"555-222-1244"},
{"name":"Marge", "email":"marge@simpsons.com", "phone":"555-222-1254"}
]
});

Ext.create('Ext.grid.Panel', {
title: 'Simpsons',
store: Ext.data.StoreManager.lookup('simpsonsStore'),
columns: [
{header: 'Name', dataIndex: 'name', editor: 'textfield'},
{header: 'Email', dataIndex: 'email', flex:1,
editor: {
xtype: 'textfield',
allowBlank: false
}
},
{header: 'Phone', dataIndex: 'phone'}
],
selType: 'rowmodel',
plugins: [
Ext.create('Ext.grid.plugin.RowEditing', {
clicksToEdit: 1,
errorSummary:false
})
],
height: 200,
width: 400,
renderTo: Ext.getBody()
});


it is not clear for me ! i need validationon my grid but i don't need tooltip on my row-editor .
with this solution i couldn't correct it too :-? .