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

HBox layout


The HBox layout is a powerful layout option that arranges items horizontally across a container. You can divide the space between child items in various ways giving you powerful layout options. Consider the following screenshot:

In this screenshot, we have four different Panels, each with four buttons (though any components, including Panels could have been used instead of buttons). Each Panel, however, has a different HBox configuration applied to it to achieve the different horizontal layouts.

Let's look at each one in turn, starting from the top-most Panel of buttons and working our way down:

<ext:Panel runat="server" Layout="HBox" BodyPadding="5" DefaultMargins="0 5 0 0">
  <Items>
    <ext:Button Text="Button 1" />
    <ext:Panel BaseCls="x-plain" Flex="1" />
    <ext:Button Text="Button 2" />
    <ext:Button Text="Button 3" />
    <ext:Button Text="Button 4" Margins="0" />
  </Items>
</ext:Panel>

In the previous code...