-
25 May 2011 11:31 PM #11
there are so many editor don't render well with original Ext.grid.plugin.RowEditing,
such as textarea, fieldContainer subClass(i wrote a DateTime,but it render bad)
i'm not good at this, maybe u have some good idea.@from: china
@web: http://atian25.iteye.com
@extensions: (extjs 4.x)
* Ext.ux.grid.plugin.RowEditing - add some usefull features (v1.4 updated 2011-09-11)
* Ext.ux.button.AutoRefresher
* Ext.ux.form.field.DateTime
-
2 Jun 2011 12:49 PM #12
Thanks, I'm using now this plugin and so far is working ok.
Regards.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!
-
10 Aug 2011 12:25 PM #13
Resize grid height
Resize grid height
I've tried and failed to make the RowEditing fire events after the editor is rendered to adjust the height of the grid.
Currently the editor will not trigger any layout in gridView, when the grid is set to 'autoHeight', nor will any scroll bar appear. See this thread http://www.sencha.com/forum/showthre...utoHeight-true
Can anyone using this ux suggest a solution?
-
28 Aug 2011 4:45 AM #14
Hey everyone,
Big thanks for this plugin !!
It's probably me and not the plugin (first time I use an extjs plugin so...), but is that possible to create this plugin in many different view ?
in my "main" app I define plugin path like this :
in each grid of an view I create plugin like this :PHP Code:Ext.Loader.setConfig({ enabled:true,
paths: {
'Ext.ux': './client_app/plugin/ux',
'Ext.ux.grid.plugin': './client_app/plugin/ux/grid/plugin'
}
});
Until there everything work fine.PHP Code:{
xtype: 'gridpanel',
width: 370,
height: 150,
store: 'User_contact',
selType: 'rowmodel',
plugins: [
Ext.create('Ext.ux.grid.plugin.RowEditing',{pluginId: 'contactRowEditor',autoCancel : false})
],
columns: [
{header: "Type", dataIndex: 'type', flex: 1, editor:{xtype:'textfield'}},
{header: "Contact", dataIndex: 'number', flex: 1, editor:{xtype:'textfield'}},
{header: "Commentaire", dataIndex: 'comment', flex: 1, editor:{xtype:'textfield'}}
]
But if I try to create this plugin in a second view. I'm unable to start my app...
Someone have an idea of what I'm doing wrong ?
-
28 Aug 2011 5:37 AM #15
It depends on the context of the usage of Ext.create - it is possible that a single RowEditor is being created for all grids!
If you create the RowEditor inside an overriden initComponent method, each grid will have its own editor (instead of all grids trying to use the same unique editor).
Something like this:
Then, due to the alias, you can simply use xtype: "mygridpanel" - and you will have one editor for each grid.Code:Ext.define( 'My.GridPanel', { extend: 'gridpanel', alias: 'widget.mygridpanel', width: 370, height: 150, store: 'User_contact', selType: 'rowmodel', columns: [ {header: "Type", dataIndex: 'type', flex: 1, editor:{xtype:'textfield'}}, {header: "Contact", dataIndex: 'number', flex: 1, editor:{xtype:'textfield'}}, {header: "Commentaire", dataIndex: 'comment', flex: 1, editor:{xtype:'textfield'}} ], initComponent: function() { var rowEditing = Ext.create('Ext.ux.grid.plugin.RowEditing', { pluginId: 'contactRowEditor', autoCancel : false }); Ext.apply(this, {plugins: [rowEditing]}); this.callParent(arguments); } );
-
29 Aug 2011 1:58 AM #16
Hey !
Thanks a lot for your informations, really helpful.
-
29 Aug 2011 1:14 PM #17
@harrydeluxe
How did you get your demo on GitHub to be able to select text in the editor? I can't manage that to save my life?
I can't even click around inside my text. The best I can do is use the arrow keys to go to the end of the text string and backspace through all of it.
-
10 Sep 2011 5:08 PM #18
@from: china
@web: http://atian25.iteye.com
@extensions: (extjs 4.x)
* Ext.ux.grid.plugin.RowEditing - add some usefull features (v1.4 updated 2011-09-11)
* Ext.ux.button.AutoRefresher
* Ext.ux.form.field.DateTime
-
11 Sep 2011 10:20 PM #19
-
11 Sep 2011 10:33 PM #20
you'd better set grid height to give space to button.
or override plugin's getEditor() method to hack the RowEditor@from: china
@web: http://atian25.iteye.com
@extensions: (extjs 4.x)
* Ext.ux.grid.plugin.RowEditing - add some usefull features (v1.4 updated 2011-09-11)
* Ext.ux.button.AutoRefresher
* Ext.ux.form.field.DateTime
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
