Book Image

Ext.NET Web Application Development

By : Anup K Shah
Book Image

Ext.NET Web Application Development

By: Anup K Shah

Overview of this book

To build a rich internet application, you need to integrate a powerful client side JavaScript framework with a server side framework. Ext.NET achieves this by integrating Sencha's Ext JS framework with the power of ASP.NET. The result ñ a sophisticated framework offering a vast array of controls, layout, and powerful AJAX and server bindings, which can be used to build rich, highly usable web applications. "Ext.NET Web Application Development" shows you how to build rich applications using Ext.NET. Examples guide you through Ext.NET's various components using both ASP.NET Web Forms and MVC examples. You will also see how Ext.NET handles data binding and server integration. You will also learn how to create reusable components and put them together in great looking applications. This book guides you through the various Ext.NET components and capabilities to enable you to create highly usable Ext.NET components and web applications. You will learn about various UI components and numerous layout options through examples. You will see how the AJAX architecture enables you to create powerful data-oriented applications easily. This book will also teach you how to create reusable custom components to suit your needs. "Ext.NET Web Application Development" shows you how to create rich and usable applications using Ext.NET through numerous examples.
Table of Contents (17 chapters)
Ext.NET Web Application Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
8
Trees and Tabs with Ext.NET
Index

TreePanel


TreePanel inherits from TablePanel, which is also the abstract parent class of GridPanel. This means that trees can get many features that GridPanels do (for example, multiple columns). A TreePanel can also work with a subclass of Store—the TreeStore—which is especially useful for AJAX-based tree interactions. These useful architectural changes from previous versions of Ext.NET increase familiarity and code reuse, while making TreePanels quite rich.

TreePanel – overview

We will leave the Store aspect for a later part of this chapter. In this section we will have a look at the basic mechanics of putting a TreePanel together.

A TreePanel is made up of nodes. A node may have children, which are more nodes. If a node does not have any child nodes it is referred to as a leaf node. A TreePanel has a single root node (which is optional to display). Tree nodes can be loaded upfront when the page is loaded (or when the TreePanel is constructed), or nodes can be expanded and populated locally...