<%@ Page Language="vb" AutoEventWireup="false" CodeFile="DefaultVB.aspx.vb" Inherits="Telerik.ZipLibraryVB.Overview.DefaultVB" %>
<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
<title>Telerik ASP.NET Example</title>
<link href="styles.css" rel="stylesheet" type="text/css" />
<script src="scripts.js" type="text/javascript"></script>
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">
function pageLoad()
{
listView = $find("<%= RadListView1.ClientID %>");
}
</script>
</telerik:RadCodeBlock>
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
<telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
<div class="demo-container">
<telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1" MinDisplayTime="200" />
<telerik:RadButton RenderMode="Lightweight" runat="server" Text="Download selected images" ID="Button1" OnClick="Button1_Click"></telerik:RadButton>
<telerik:RadButton RenderMode="Lightweight" Text="Download all images" ID="Button2" OnClick="Button2_Click" runat="server"></telerik:RadButton>
<telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1" CssClass="list">
<br />
<telerik:RadListView OnNeedDataSource="RadListView1_NeedDataSource" runat="server" ID="RadListView1"
AllowPaging="true" AllowMultiItemSelection="true" PageSize="10" DataKeyNames="Id">
<LayoutTemplate>
<div class="list">
<div style="clear: both;">
</div>
<asp:Panel ID="itemPlaceholder" runat="server">
</asp:Panel>
<div style="clear: both;">
</div>
</div>
</LayoutTemplate>
<ItemTemplate>
<div style="float: left; margin: 5px; padding: 2px; position: relative; background: #eeeeee;"
class="myClass" onclick='ToggleSelection("Select", "<%# Container.DataItemIndex %>");'>
<telerik:RadBinaryImage Style="cursor: pointer; display: block;" runat="server" ID="RadBinaryImage1"
DataValue='<%#Eval("Data") %>' Height='200px' Width="200px"
ResizeMode="Fit"
AlternateText='<%#Eval("Name") %>' ToolTip='<%#Eval("Name") %>' />
</div>
</ItemTemplate>
<SelectedItemTemplate>
<div style="float: left; margin: 5px; padding: 2px; position: relative; background: #eeeeee;"
onclick='ToggleSelection("Deselect","<%# Container.DataItemIndex %>");'>
<telerik:RadBinaryImage Style="cursor: pointer; display: block;" runat="server" ID="RadBinaryImage1"
DataValue='<%#Eval("Data") %>' Height='200px' Width="200px"
ResizeMode="Fit"
AlternateText='<%#Eval("Name") %>' ToolTip='<%#Eval("Name") %>' />
<asp:Image CssClass="selected" ID="Image1" ImageUrl="~/ZipLibrary/Examples/Overview/Img/selected_img.png" AlternateText="Selected item" runat="server" />
</div>
</SelectedItemTemplate>
</telerik:RadListView>
</telerik:RadAjaxPanel>
</div>
</form>
</body>
</html>