Irwsoft Web Control

ItemPanel
Brief Information
DescriptionA control to display a template in a panel with layout features.
Features
  • DataBinding from data-source.
  • Design layout (Table, FixedColumn, FixedRow and Dynamic).
  • Render direction (Left, Right, Top and Bottom)
ItemPanel control
A ItemPanel control displays pictures in FixedColumn layout.


The ItemPanel control is a control to display a templated-content into a list model rendered based on layout specification.


Example : Displays a ItemPanel control.


C# code for ItemPanel

// 1) Designs list-view item template.
<irw:ItemPanel ID="BTN1" runat="server" SkinStyle="White" LayoutMode="FixedColumn">
     <FixedColumnStyle ColumnCount="2" ColumnsWidth="300,300">
     <ItemTemplate>  // 2) Defines a propertyto bind inside DataPropertyNames tag
          <irw:Picture runat="server" Height="200">
               <irw:ViewPropertyName Name="IDCardImg" DataType="ImageUrl" />
          </irw:Picture><br/>
          <irw:SimpleText runat="server">
               <irw:ViewPropertyName Name="Name" />
          </irw:SimpleText><br/>
          <irw:SimpleText runat="server">
               <irw:ViewPropertyName Name="Gender" Type="WebTest.Data.GenderType" />
          </irw:SimpleText><br/>
     </ItemTemplate>
</irw:ItemPanel>


Related Topics :


Irwsoft Data Ultimate Edition 4.0 supports data-schema extension (entity framework, linq to sql, simple class, and etc).