Simple Form Extjs
In this section, we will learn about how to make a simple form Extjs and how to change the Extjs theme, so that form looks nice. But before continuing, you must have an installer of Extjs, you can download the latest version of Extjs from its official siteĀ http://www.extjs.com/products/extjs/download.php. The latest version of Extjs was ext-2.2.1.
Furthemore, if you successfully to download it, place that installer in your drive computer.Example,this is my drive C:\xamp\htdocs\Defafe\ext-2.2.1.
Ok, now we get ready to start this tutorial.
1. index.html
//this tutorial using xtheme-vistablue. //include file SimpleForm.js
Source code must be on the order
2. SimpleForm.js
Ext.onReady(function(){
Ext.QuickTips.init();
var SimpleForm = new Ext.FormPanel({
labelWidth: 90, // label settings
frame:true,
width:300,
autoHeight:true,
padding:200,
defaultType: 'textfield',
items: [{
fieldLabel: 'Full Name',//name of label
name: 'first',//name of field,
allowBlank:false
},{
fieldLabel: 'Address',
name: 'address'
},{
fieldLabel: 'Email',
name: 'email',
vtype:'email'//validation email
}
],
buttons: [{
text: 'Save'
},{
text: 'Cancel'
}]
});
var createwindow = new Ext.Window({
frame:true,
title: 'Simple Form',
width:315,
height:180,
closable: false,
items: SimpleForm
});
createwindow.show();
});
Here isĀ screen shot of this tutorial

Tags: Address Name, CSS, Data Formats, Download Php, Drive C, Drive Computer, extjs, FAQs Help and Tutorials, Htdocs, HTML, JavaScript, Padding, Source code, Style Sheets, True Title, True Width, Validation, Webserver directory index, Window Frame, Xamp
I’ve tried but only just form is appear and filed it does not appear..
how is this?
saya punya masalah please bantu saya.
saya punya dua gridpanel. gridpanel1 untuk table inventaris dan gridpanel2 untuk table history..
bagaimana caranya agar saya bisa menampilkan gridpanel2 yg berisi data history yang kodenya = code.gridpanel1
ketika saya doubleclick gridpanel1 maka tampil data di gridpanel yang kode.gridpanel2=kode.gridpanel1