- How do I create & customize forms
- How do I submit the forms using AJAX
- How can I load form data using AJAX
Loading & Submitting Data Now that we have a little introduction into forms lets start coding. The first thing we need to do is include our JavaScript and css files. For this example we will just include everything. Ext Includes Create a Form Panel instance While this does not do much this will get you started. Next we need to add some configuration to our form. The first thing to understand is that the FormPanel class extends Panel so many configuration options / methods / events come from the Panel class. Here are some of the main configuration options that we are going to use in our example.
- id - The unique id of this component (defaults to an auto-assigned id)
- renderTo - The id of the node, a DOM node or an existing Element that will be the container to render this component into.
- title - The title text to display in the panel header
- width - The width of this component in pixels
- frame - True to render the panel with custom rounded borders, false to render with plain 1px square borders (defaults to false).
- items - A single item, or an array of child Components to be added to this container. Each item can be any type of object based on Ext.Component.
- buttons - An array of Ext.Button configs used to add buttons to the footer of this panel.
- Checkbox - Single checkbox field. Can be used as a direct replacement for traditional checkbox fields.
- Combobox - A combobox control with support for autocomplete, remote-loading, paging and many other features.
- DateField - Provides a date input field with a Ext.DatePicker dropdown and automatic date validation.
- Field - Base class for form fields that provides default event handling, sizing, value handling and other functionality.
- FieldSet - Standard container used for grouping form fields.
- Hidden - A basic hidden field for storing hidden values in forms that need to be passed in the form submit.
- HtmlEditor - Provides a lightweight HTML Editor component.
- NumericField - Numeric text field that provides automatic keystroke filtering and numeric validation.
- Radio - Single radio field. Same as Checkbox, but provided as a convenience for automatically setting the input type. Radio grouping is handled automatically by the browser if you give each radio in a group the same name.
- TextArea - Multiline text field. Can be used as a direct replacement for traditional textarea fields, plus adds support for auto-sizing.
- TextField - Basic text field. Can be used as a direct replacement for traditional text inputs, or as the base class for more sophisticated input controls (like Ext.form.TextArea and Ext.form.ComboBox).
- TimeField - Provides a time input field with a time dropdown and automatic time validation.
- Provides a convenient wrapper for TextFields that adds a clickable trigger button (looks like a combobox by default).

#1 by Chris Dawes on 2/27/08 - 6:46 PM
- spinner (number spinner, date spinner, etc)
- multi select text field, multi select combo
- currency field
- multifield (custom field)
- date/time field
#2 by Chris Dawes on 2/27/08 - 6:47 PM
#3 by Viktor on 3/19/08 - 9:52 AM
#4 by Sunshine on 4/21/08 - 3:34 AM
Thanks in advance
#5 by dbp on 6/16/08 - 6:34 AM
#6 by jbadfaxq on 6/17/08 - 11:00 PM
#7 by mirws on 6/20/08 - 12:32 AM
very nice article.. :)
I'm a newbie in ajax Extjs, I got trouble when using datefield, because my application need a field that can handled date type and special characters (i.e. '*', '-', numeric and also 'h','m','s' ). If I use datefield, it can't store default value for my special characters, its only received date type. I have a plan to combine common textfield with datePicker. but until now I got stuck on it. Could you help me give a simple way to that thing.... thanks
#8 by wycliffe on 2/15/10 - 3:20 AM
#9 by Harpreet Singh on 9/26/10 - 1:54 AM
http://rowsandcolumns.blogspot.com/2010/07/extjs-p...
#10 by Abe Coughlin on 2/4/11 - 6:58 PM
I'm creating a search tool inside a Ext.Window that generates a grid (capGrid) and I want to search the results. A similar page (non Ext.) uses the code below.
Any suggestions/help would be appreciated.
Thanks
<div class="rightwise">
<input id="filter" title="Search" name="filter" value="" class="rigthwise search" type="text" size="35"></input>
<input id="id111" name=":submit" value="Search" onclick="wicketShow('ajaxFeedback');
var wcall=wicketSubmitFormById('id110',
'?wicket:interface=:8:table:filterForm:submit::IActivePageBehaviorListener:0:&wicket:ignoreIfNotActive=true', ':submit' ,function(){;wicketHide('ajaxFeedback');}.bind(this),function() { ;wicketHide('ajaxFeedback');}.bind(this), function() {return Wicket.$$(this)&&Wicket.$$('id110')}.bind(this));;; return false;" class="noshow" type="submit"/>
<script type="text/javascript">
//<![CDATA[
// this one works when the page is loading for the first time
jQuery(document).ready(function() {$('#filter').inlineInfoTextify();});
// this one in ajax popups where the content to textify is generated on the fly
// after the page has been loaded
$('#filter').inlineInfoTextify();
//]]>
</script>
</div>
#11 by Jhonny on 2/28/11 - 3:02 AM