PDA

View Full Version : RowEditor in extDesigner



tbaenziger
18 Sep 2010, 11:13 PM
In Your RESTful Store Example the
var editor = new Ext.ux.grid.RowEditor({
saveText: 'Update'

is added in the config of the GridPanel with

plugins: [editor],

the plugins property isn't in the Designers properties.
How can I add this in the .js file ?

j-joey
19 Sep 2010, 12:30 PM
check this thread http://www.sencha.com/forum/showthread.php?103520

tbaenziger
20 Sep 2010, 4:42 AM
thank You
Problem:
Writer should be a plugin of JsonStore and JsonStore has no property plugins no methode initPlugin

jarrednicholls
20 Sep 2010, 5:38 AM
Hi tbaenziger,

Correct, a DataWriter is not a plugin, and Stores are not Components and therefore don't work with plugins as of Ext 3.x. Your question was in relation to the RowEditor plugin...I am guessing you got it working correctly?

As for setting up a DataWriter and Stores: At this time DataWriters are not able to be added to your Stores inside of the Designer (we will be adding that capability in the future), but you can add it manually when you instantiate your store for use in your project:



var store = new MyStore({
writer: new Ext.data.JsonWriter()
});


Note that you will need to copy/paste your store code to a separate .js file, since the Store .js files are always overwritten on project export...therefore editing the exported file directly is unadvised. We will be adding an option in a future release to turn on and off the store instantiation call at the end of the exported file:



new MyStore();


Hope that helps!
Jarred

tbaenziger
20 Sep 2010, 6:03 AM
Hi Jarred
Thank You. It works with this patch in the store file
I'm waiting for the future release of extDesigner

kind regards
Thomas