-
20 Jun 2012 8:12 PM #31
Hi Atian,
I have a issue.
A tbar in the Ext.grid.Panel and i make a refresh function like:
Code:{ text: "Refresh", iconCls: "z-btn-refresh", listeners: { click: function () { me.getEl().mask("Loading..."); me.store.load(function (records, operation, success) { console.log('loaded records'); me.getEl().unmask(); }); } } }
Add function handler like:
Code:{ text: "New", iconCls: "z-btn-add", listeners: { click: function (btn, e, eOpts) { if (edit.editing) { return false; } var newObj = Ext.create("Biz.model.MyModel"); edit.startAdd(newObj, 0); } } }
A fter I click Add button , and click Refresh button, a error will throw from RowEditing.js[Lined:249].
Code:cancelEdit: function () { var me = this; if (me.editing) { me.getEditor().cancelEdit(); me.editing = false; me.fireEvent('canceledit', me.context); if (me.autoRecoverOnCancel) { if (me.adding) { me.context.record.store.remove(me.context.record); me.adding = false } else { //不需要reject,因为Editor没有更改record. //me.context.record.reject() } } } }
The reson is me.context.record.store is null.
I am not sure it is a bug or I not use it in right way.Beginning from ExtJS 4.0
-
5 Dec 2012 3:18 PM #32
Any ideas how to implement a grid header on top of the row editor?
There are cases when header must be in front of information being changed.
-
5 Dec 2012 4:10 PM #33
UI: Sencha Architect 2.x / ExtJS 4 MVC
Server side: EJB 3.1 / CDI / JPA 2 / JAX-RS / JasperReports
Application Server: Glassfish 3.1.x
Databases: Oracle 10g & 11g / DB2 9 & 10 / Firebird 2.5
If you like my answer please vote!
-
5 Dec 2012 7:00 PM #34
-
26 Dec 2012 8:53 PM #35
need to change the rowediting button background color
need to change the rowediting button background color
Hi All,
while adding new row i need to change the color of the "update" button as a green and "cancel" button as a maroon .
Thanks in advance

Similar Threads
-
[CLOSED][DUP][4.0] RowEditing bug && feature
By atian25 in forum Ext:BugsReplies: 1Last Post: 26 Apr 2011, 11:13 PM -
RowEditing Plugin
By mujahid in forum Ext: DiscussionReplies: 0Last Post: 21 Apr 2011, 4:50 AM -
[CLOSED]Ext.grid.RowEditing - size problems
By bydooweedoo in forum Ext:BugsReplies: 1Last Post: 15 Mar 2011, 7:22 PM -
Some usefull examples
By Rapotor in forum Community DiscussionReplies: 11Last Post: 20 Feb 2008, 2:40 AM -
Just found a very usefull tool (Testing data Generator)
By Micha in forum Ext 1.x: Help & DiscussionReplies: 9Last Post: 24 Jul 2007, 7:01 AM


Reply With Quote