Posts

Showing posts from August, 2011

Dynamically add form elements in Extjs 4

Code snippet to dynamically add form elements in Extjs 4 with ease. Ext.onReady(function() {     var myForm = Ext.create('Ext.form.Panel', {         title: 'Query form',         width: 600,         renderTo: Ext.getBody(),         items: [{             xtype: 'button',             text: 'click me to add',             handler: function() {                 var tf = Ext.create('Ext.form.field.Text', {                     name: 'name',                     fieldLabel: 'Name'                 });                 myForm.add(tf);             }         }]     }); });

ExtJS 4.0 forms and grids generator

 I've just seen this product today and although I don't require it straight away, I had to blog about it because I can see it being very useful in the future. I was first drawn to it for its support of Extjs, but here is a list of the support it offers; Templates are available for generating the following application architectures:     ASP.NET MVC framework + LinqToSql or EntityFramework     Castle Monorail MVC framework + ActiveRecord     Adobe Flex 3 + ASP.NET + Web service     Php + ExtJS application     Java + ExtJS application Database supported by LatticeFramework Code Generator:     SQL Server 7/2000/2005/2008     Oracle 9i/10g/11     MySQL 5/6     PostgreSQL 7/8 You can read more about it and download it here; http://www.latticesoft.com/product/overview.aspx I hope I'm not being cheeky but It would be good to see some support for grails and spring too! :)