This example shows where to put the code that implements the communication among components.
Code that creates and activates the new tab when a link is clicked is neither part of the west "link" panel nor the center tab panel but it is part of the window which is aware of the existence of both panels.
This example shows how to easily and automatically switch between production and development system.
We include individual JavaScript files and the debug version of ExtJS Library in the development version and concatenated and compressed files and the compressed version of ExtJS Library in the production version.
This is a simple grid-to-grid D&D implementation that allows you to drag rows from one grid and drop them to another. Rows are only appended to the target grid for simplicity.
The key is to enable the built-in D&D for both grids and to implement the custom GridDropZone that removes records from the source store and appends them to the destination store.
This example shows how to display errors that come back from the server if the server validation fails.
Form initially loads valid from the client validation viewpoint but the server returns errors after submit. These errors are displayed as toolips of error icons. They can be alternatively displayed in any valid field msgTarget.
The key is to return JSON in the format that Ext can understand and process as fields errors.
This example shows how to properly configure side-by-side anchored fieldsets.
As you resize the window, the fieldsets with fields resize themselves to fill the new width. This is done with the help of Form Layout that extends Anchor Layout. Column Layout is used to put fieldsets side-by-side.
This example show both horizontal and vertical anchoring of form fields.
Fields resize to fill the available space when you resize the window.
This example shows how to load form data from server and how to submit form.
The form starts empty and when you click Load button the data is loaded from the server and the form fields are filled in. When you click Submit button the data is sent to the server and a result is returned. In this example, result alternates between success and failure.
Submit button in disabled until the form becomes valid.
This example shows how to put an image, or any other static content, into a form.
The key is a BoxComponent with properly configured autoEl.
This example shows how to correctly configure tabs in a form.
If form containing tabs is not properly configured, rendering problems of fields on initially inactive tabs, especially combos or dates, may result. Form can also submit only fields from the active tab or anchoring of fields on tabs does not work. The example is free of all these problems.
This example shows how to display data from "many" table in QuickTips of a grid that displays data from "one" table.
Although simple, it can be useful for displaying person:phones, company:addresses, invoice:items or any other 1:many data.
This example shows how to put a grid in an Accordion Layout panel which can be initially inactive.
The key is lazy instantiating and rendering.
This example shows how to put a grid in a tab which can be initially inactive.
The key is lazy instantiating and rendering.
This example shows how to put a grid in a Border Layout region.
The key is lazy instantiating and rendering.
The example uses the working Paging Toolbar so you can also see how it is implemented including the server side PHP script.
This is a minimalistic example of Border Layout configuration; it cannot be any simpler.
This is a simple Viewport with Border Layout example.
This example shows how to put a TabPanels in an Accordion Layout.
The key is lazy instantiating and rendering.
This example shows how to configure Window or Panel content autoLoad.
When the Window or Panel is rendered a request is sent to the server and the Window or Panel body is updated with the delivered content.
This example shows how to keep an Accordion Layout state so it expands same panel on a new page load.
The trick is to supply getState function that returns collapsed state of panels and this state is saved by the State Manager. When Accordion is instantiated next time, collapsed configuration property is applied to all panels as retrieved from the State Manager so the Accordion renders in the same state as you left it last time.
Example of creating a 3 column layout with CSS only, no coding is required.
You are viewing a mobilized version of this site...
View original page here