Dimensions

28 Jul 20161 minute to read

To customize the ListView dimensions, Width and Height properties are used.

Refer to the following code examples.

  • HTML
  • <ej:ListView ID="ListView1" runat="server" Height="600" Width="300" >
            <Items>
                <ej:ListViewItems Text="Artwork"></ej:ListViewItems>
                <ej:ListViewItems Text="Abstract"></ej:ListViewItems>
                <ej:ListViewItems Text="2 Acrylic Mediums"></ej:ListViewItems>
                <ej:ListViewItems Text="Creative Acrylic"></ej:ListViewItems>
                <ej:ListViewItems Text="Modern Painting"></ej:ListViewItems>
                <ej:ListViewItems Text="Canvas Art"></ej:ListViewItems>
                <ej:ListViewItems Text="Black white"></ej:ListViewItems>
                <ej:ListViewItems Text="Children"></ej:ListViewItems>
                <ej:ListViewItems Text="Preschool Crafts"></ej:ListViewItems>
                <ej:ListViewItems Text="School-age Crafts"></ej:ListViewItems>
            </Items>
    </ej:ListView>

    Run the code to get the following output