or


<telerik:RadComboBox ID="ddHomeLocation" runat="server" DropDownWidth="500px" EmptyMessage="Choose a Location" Skin="Windows7" HighlightTemplatedItems="true" EnableLoadOnDemand="true" Filter="StartsWith" Height="200px" Width="500px" OnItemsRequested="ddHomeLocation_ItemsRequested" OnLoad="ddHomeLocation_Load" ><HeaderTemplate> <div style="width:2300px;height:50px; " > <div style="float:left;width:90px"> <%= Session["LocationTypesLocationTypeCode"].ToString()%> </div> <div style="float:left;width:80px"> <%= Session["LocationTypesLocationTypeName"].ToString()%> </div> <div style="float:left;width:60px"> <%= Session["LocationsLocationID"].ToString()%> </div> <div style="float:left;width:60px"> <%= Session["LocationsLocationName"].ToString()%> </div> <div style="float:left;width:60px"> <%= Session["LocationsLocationCodeHome"].ToString()%> </div> <div style="float:left;width:70px"> <%# Session["LocationsLocationNameHome"].ToString()%></div> <div style="float:left;width:80px"> <%= Session["LocationsLocationCodeCurrent"].ToString()%> </div> <div style="float:left;width:80px"> <%= Session["LocationsLocationNameCurrent"].ToString()%> </div> <div style="float:left;width:80px"> <%= Session["AddressesAddressName"].ToString()%> </div> <div style="float:left;width:80px"> <%= Session["AddressesAddress1"].ToString()%> </div> <div style="float:left;width:80px"> <%= Session["AddressesAddress2"].ToString()%> </div> <div style="float:left;width:80px"> <%= Session["AddressesCity"].ToString()%> </div> <div style="float:left;width:80px"> <%= Session["AddressesState"].ToString()%> </div> <div style="float:left;width:80px"> <%= Session["AddressesZip"].ToString()%> </div> <div style="float:left;width:80px"> <%= Session["AddressesCountry"].ToString()%> </div> <div style="float:left;width:80px"> <%= Session["LocationsBuilding"].ToString()%> </div> <div style="float:left;width:80px"> <%= Session["LocationsFloor"].ToString()%> </div> <div style="float:left;width:80px"> <%= Session["LocationsRoom"].ToString()%> </div> <div style="float:left;width:80px"> <%= Session["LocationsArea"].ToString()%> </div> <div style="float:left;width:80px"> <%= Session["LocationsAisle"].ToString()%> </div> <div style="float:left;width:80px"> <%= Session["LocationsShelf"].ToString()%> </div> <div style="float:left;width:80px"> <%= Session["LocationsBin"].ToString()%> </div> <div style="float:left;width:80px"> <%= Session["LocationsVIN"].ToString()%> </div> <div style="float:left;width:80px"> <%= Session["LocationsMake"].ToString()%> </div> <div style="float:left;width:80px"> <%= Session["LocationsModel"].ToString()%> </div> <div style="float:left;width:80px"> <%= Session["LocationsColor"].ToString()%> </div> <div style="float:left;width:80px"> <%= Session["LocationsLicensePlate"].ToString()%> </div> <div style="float:left;width:80px"> <%= Session["LocationsPalletteNumber"].ToString()%> </div> <div style="float:left;width:80px"> <%= Session["LocationsNotes"].ToString()%> </div> </div></HeaderTemplate> <ItemTemplate> <div style="width:2300px;" > <div style="float:left;width:90px"> <%# DataBinder.Eval(Container, "Attributes['LocationTypeCode']")%> </div> <div style="float:left;width:80px"> <%# DataBinder.Eval(Container, "Attributes['LocationTypeName']")%> </div> <div style="float:left;width:60px"> <%# DataBinder.Eval(Container, "Attributes['LocationCode']")%> </div> <div style="float:left;width:60px"> <%# DataBinder.Eval(Container, "Attributes['LocationName']")%> </div> <div style="float:left;width:60px"> <%# DataBinder.Eval(Container, "Attributes['HomeLocationCode']")%> </div> <div style="float:left;width:70px"> <%# DataBinder.Eval(Container, "Attributes['HomeLocationName']")%> </div> <div style="float:left;width:80px"> <%# DataBinder.Eval(Container, "Attributes['CurrentLocationCode']")%> </div> <div style="float:left;width:80px"> <%# DataBinder.Eval(Container, "Attributes['CurrentLocationNam']")%> </div> <div style="float:left;width:80px"> <%# DataBinder.Eval(Container, "Attributes['AddressName']")%> </div> <div style="float:left;width:80px"> <%# DataBinder.Eval(Container, "Attributes['Address1']")%> </div> <div style="float:left;width:80px"> <%# DataBinder.Eval(Container, "Attributes['Address2']")%> </div> <div style="float:left;width:80px"> <%# DataBinder.Eval(Container, "Attributes['City']")%> </div> <div style="float:left;width:80px"> <%# DataBinder.Eval(Container, "Attributes['State']")%> </div> <div style="float:left;width:80px"> <%# DataBinder.Eval(Container, "Attributes['Zip']")%> </div> <div style="float:left;width:80px"> <%# DataBinder.Eval(Container, "Attributes['Country']")%> </div> <div style="float:left;width:80px"> <%# DataBinder.Eval(Container, "Attributes['Building']")%> </div> <div style="float:left;width:80px"> <%# DataBinder.Eval(Container, "Attributes['Floor']")%> </div> <div style="float:left;width:80px"> <%# DataBinder.Eval(Container, "Attributes['Room']")%> </div> <div style="float:left;width:80px"> <%# DataBinder.Eval(Container, "Attributes['Area']")%> </div> <div style="float:left;width:80px"> <%# DataBinder.Eval(Container, "Attributes['Aisle']")%> </div> <div style="float:left;width:80px"> <%# DataBinder.Eval(Container, "Attributes['Shelf']")%> </div> <div style="float:left;width:80px"> <%# DataBinder.Eval(Container, "Attributes['Bin']")%> </div> <div style="float:left;width:80px"> <%# DataBinder.Eval(Container, "Attributes['VIN']")%> </div> <div style="float:left;width:80px"> <%# DataBinder.Eval(Container, "Attributes['Make']")%> </div> <div style="float:left;width:80px"> <%# DataBinder.Eval(Container, "Attributes['Model']")%> </div> <div style="float:left;width:80px"> <%# DataBinder.Eval(Container, "Attributes['Color']")%> </div> <div style="float:left;width:80px"> <%# DataBinder.Eval(Container, "Attributes['LicensePlate']")%> </div> <div style="float:left;width:80px"> <%# DataBinder.Eval(Container, "Attributes['PlateNumber']")%> </div> <div style="float:left;width:80px"> <%# DataBinder.Eval(Container, "Attributes['Notes']")%> </div> </div> </ItemTemplate> </telerik:RadComboBox>public override System.Collections.Generic.IEnumerable<Appointment> GetAppointments(RadScheduler owner) { var events = _messageService.GetEvents(); IEnumerable<Appointment> appts = events != null ? Mapper.Map<IList<EventDTO>, IEnumerable<Appointment>>(events) : new List<Appointment>(); int index = 0; appts.ToList().ForEach(delegate(Appointment appt) { appt.Owner = owner; appt.RecurrenceState = appt.RecurrenceParentID != null ? RecurrenceState.Exception : !string.IsNullOrEmpty(appt.RecurrenceRule) ? RecurrenceState.Master : RecurrenceState.NotRecurring; LoadResources(owner, appt, events[index]); index++; }); return appts; }private void LoadResources(RadScheduler owner, Appointment appt, EventDTO eventDTO) { if (eventDTO.Professional.HasValue) { Resource professional = GetResourcesByType(owner, "Professional").FirstOrDefault(r => Convert.ToInt64(r.Key) == eventDTO.Professional); if (professional != null) appt.Resources.Add(professional); } if (eventDTO.Operatory.HasValue) { Resource operatory = GetResourcesByType(owner, "Operatory").FirstOrDefault(r => Convert.ToInt64(r.Key) == eventDTO.Operatory); if (operatory != null) appt.Resources.Add(operatory); } }

<MasterTableView TableLayout="Fixed" CommandItemDisplay="Top" DataKeyNames="indeks"> <CommandItemTemplate> <asp:Button ID="DownloadPDF" runat="server" Width="64px" CommandName="ExportToPdf" CssClass="pdfButton" /> <asp:Image ID="Image1" runat="server" ImageUrl="/Images/banner.png" AlternateText="York" Width="100%" /> </CommandItemTemplate> <Columns> <telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="indeks" Display="false" DataType="System.String" FilterListOptions="VaryByDataType" ForceExtractValue="None" HeaderText="Indeks" ReadOnly="True" SortExpression="ProductID" UniqueName="ProductID"> </telerik:GridBoundColumn> <telerik:GridTemplateColumn Aggregate="Count" HeaderText="Indeks" HeaderStyle-HorizontalAlign="Center" DataField="indeks" UniqueName="indeks" SortExpression="indeks" FilterControlWidth="100%" HeaderStyle-Width="50px" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true" ItemStyle-HorizontalAlign="Center"> <ItemTemplate> <asp:HyperLink ID="targetControl" runat="server" Enabled="false" Text='<%# Eval("indeks") %>'></asp:HyperLink> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridBoundColumn HeaderText="EAN" DataField="EAN" HeaderStyle-HorizontalAlign="Center" UniqueName="EAN" SortExpression="EAN" HeaderStyle-Width="60px" FilterControlWidth="100%" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" ItemStyle-HorizontalAlign="Center" /> <telerik:GridNumericColumn HeaderText="Sztuk w kartonie" DataField="sztwkart" HeaderStyle-HorizontalAlign="Center" UniqueName="sztwkart" SortExpression="sztwkart" FilterControlWidth="100%" HeaderStyle-Width="30px" ShowFilterIcon="false" ItemStyle-HorizontalAlign="Center" AutoPostBackOnFilter="true" /> <telerik:GridBoundColumn HeaderText="Rozmiar kartonu" DataField="rozmiarkart" HeaderStyle-HorizontalAlign="Center" UniqueName="rozmiarkart" SortExpression="rozmiarkart" HeaderStyle-Width="70px" FilterControlWidth="100%" ShowFilterIcon="false" ItemStyle-HorizontalAlign="Center" AutoPostBackOnFilter="true" /> <telerik:GridTemplateColumn HeaderText="Zdjęcia" HeaderStyle-Width="120px" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" AllowFiltering="false"> <ItemTemplate> <telerik:RadRotator runat="server" ID="itemsRotator" OnDataBinding="RadRotator_OnDataBinding" Width="168px" Height="128px" ItemWidth="128px" ItemHeight="128px"> <ItemTemplate> <telerik:RadBinaryImage runat="server" ID="RadBinaryImage1" DataValue='<%#Eval("zdjecie") %>' AutoAdjustImageControlSize="false" Width="128px" Height="128px" ResizeMode="Fit" ImageAlign="Middle"/> </ItemTemplate> </telerik:RadRotator> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridBoundColumn AllowFiltering="false" AllowSorting="false" DataField="Fiszka" HeaderStyle-HorizontalAlign="Center" UniqueName="fiszka" HeaderText="Fiszka" HeaderStyle-Width="60px" ItemStyle-HorizontalAlign="Center" ShowFilterIcon="false" /> </Columns> </MasterTableView>