PDA

View Full Version : Add "renderer" method to grid column using Ext Designer



jinionnet
20 Jun 2012, 3:44 AM
Hi Guys,

Is there a way to add "renderer" function to the grid column UI using Ext Designer 1.2.3 build 50. Or is there any alternative to do the same thing by modifying the "view" js file(not the "ui" js file)?

I found an thread http://www.sencha.com/forum/showthread.php?123642-Add-a-custom-render-for-a-column-in-Ext-Designer. But this is not working for me.
My view file is something similar to below. Please help me to implement the render function to this view file.





Ext.define('FEMA.view.CapitationWindow', {
extend: 'FEMA.view.ui.CapitationWindow',


initComponent: function () {
var me = this;
me.callParent(arguments);
}
});

/



Thanks in advance,
jini

jinionnet
21 Jun 2012, 5:05 AM
Hi ,
Anybody can help me please...

aconran
21 Jun 2012, 8:47 AM
You'll want to add to the columns (or modify an existing column) inside the implementation file that you've posted above.

ie this.columns.push({});
or this.columns[x].renderer = function();

Btw I'd seriously recommend testing out Sencha Architect 2, you can just click the + button next to the renderer configuration in this version.

jinionnet
24 Jun 2012, 9:58 PM
Hi aconran,
I have project which have 100s of view/ui files which developed in Ext Designer. But I couldnt convert the project to Architect. Also I just want to know that how can I convert the view file to controller file?

Thanks,
Jini

aconran
25 Jun 2012, 3:06 PM
I have project which have 100s of view/ui files which developed in Ext Designer. But I couldnt convert the project to Architect.

Was this because you don't want to/can't use Architect or because Architect failed opening the project? If it failed, please send it along to us designer.feedback at sencha.com and we can troubleshoot what the problem is and fix it for others.




Also I just want to know that how can I convert the view file to controller file?

I don't understand the question. Controllers can respond to events which occur in views but there is no such thing as converting a view to a controller.

jinionnet
6 Jul 2012, 6:40 AM
Was this because you don't want to/can't use Architect or because Architect failed opening the project? If it failed, please send it along to us designer.feedback at sencha.com and we can troubleshoot what the problem is and fix it for others.
.
I am unable to convert the xds file to architect. The project file size is 2.5MB. Also due to some NDA I cant publish the project file.


I don't understand the question. Controllers can respond to events which occur in views but there is no such thing as converting a view to a controller.
Actually the deisgner files in the UI folder and specific event/methods in the VIEW folder, right? I think was when we convert any designer project to architect , it converts only the UI part and not going to move any events to the MVC controller files. Am I correct?

aconran
6 Jul 2012, 10:14 AM
I think was when we convert any designer project to architect , it converts only the UI part and not going to move any events to the MVC controller files. Am I correct?

Correct, you would need to add these as events within Architect and/or put them into controller files.

jinionnet
7 Jul 2012, 6:26 AM
Correct, you would need to add these as events within Architect and/or put them into controller files.

I have 50 more files in view folder. So it is very hard to covert all files manually. Is rhere any other way to do this automatically?

aconran
7 Jul 2012, 9:31 AM
I have 50 more files in view folder. So it is very hard to covert all files manually. Is rhere any other way to do this automatically?
No