-
21 Feb 2007 10:57 AM #11
Sorry about that. Grab it again.

-
21 Feb 2007 12:31 PM #12
Awesome! works :-)
Seem to have a display problem with a double button with all my buttons, (there is an inner button in all the buttons). Not anything thats going to stop development though.
Anyone have any suggestions/experiences with the new data marshalling/modified/dirty aspect of the grid?
-
21 Feb 2007 12:34 PM #13
It's in there to define the interface. Look for auto marshalling of changes in a future release.
-
21 Feb 2007 1:01 PM #14
Just teasing us to show what's to come eh?
Can't wait!
-
22 Feb 2007 10:36 AM #15
Jack:
In response to why I need the index... or perhaps I'm overlooking something.
When deleting a Record:
How do I know to call selectFirstRow if the user had clicked the first row?Code:deleteTest : function() { var deleteRow = sm.getSelected(); ds.remove(deleteRow); sm.selectPrevious(); // TODO if deleteRow was 0 how do we know to selectFirstRow },
-
22 Feb 2007 11:10 AM #16
Can you do that by looking at the index of the deleteRow? (untested)
Code:if (ds.indexOf(deleteRow)) == 0) { sm.selectFirstRow(); }Tim Ryan
Read BEFORE posting a question / BEFORE posting a Bug
Use Google to Search - API / Forum
API Doc (4.x | 3.x | 2.x | 1.x) / FAQ / 1.x->2.x Migration Guide / 2.x->3.x Migration Guide
-
22 Feb 2007 11:32 AM #17
Thanks Tim!
Code:
Readers should note that the index has to be looked up before you delete it. Otherwise you will get -1 as it's already been deleted.Code:var deleteRow = sm.getSelected(); var deleteRowIdx = ds.indexOf(deleteRow); ds.remove(deleteRow); if (deleteRowIdx === 0) sm.selectFirstRow(); else sm.selectPrevious();
Similar Threads
-
From Alpha1 to Alpha2
By franklt69 in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 24 Feb 2007, 9:47 PM


Reply With Quote