PDA

View Full Version : CellEditing - Grid EXTJS4 : row validation



performancetest
24 Aug 2011, 1:11 PM
Hi,

I have a grid using CellEditing plugin, I created a button to add new row. I want to validate that the last row added was populated before adding a new row.

I did this with Extjs3 by using

GridStoreName.getAt(0).data['FIELDNAME'] to get the value of the required field in the grid and make sure it is populated.

How can I do this in EXTJS4 ?

Please help

skirtle
27 Aug 2011, 1:54 AM
Perhaps this?


store.first().get('FIELDNAME');

performancetest
18 Oct 2011, 7:29 AM
Thank you very much Skirtle! Sorry took long to close the post from myside.