or

<asp:Repeater ID="rptrFirst5Assignments" runat="server" onitemdatabound="rptrFirst5Assignments_ItemDataBound" onitemcommand="rptrFirst5Assignments_ItemCommand" onitemcreated="rptrFirst5Assignments_ItemCreated" > <ItemTemplate> <table > <tr > <td > <asp:Label ID="lblAssignmentID" runat="server" Text='<%# Bind("Asm_ID") %>' Visible="false"></asp:Label> <asp:Label ID="lblCreatedByID" runat="server" Text='<%# Bind("Asm_CreatedBy") %>' Visible="false"></asp:Label> <asp:Label ID="lblAssignment" runat="server" CssClass="alltext" Text='<%# Bind("Asm_Body") %>'></asp:Label> </td> <td style="float:left;"> <asp:LinkButton ID="btnDelete" runat="server" CausesValidation="false" CssClass="link-delete" CommandName="Delete" CommandArgument='<%# Eval("Asm_ID")%>' /></td> </tr> </table> </ItemTemplate> </asp:Repeater>if (!Page.IsPostBack) {CreateDocksFirstTime();for (int i = 0; i < RadDockLayout1.Controls.Count; i++) { if (RadDockLayout1.Controls[i].GetType() == typeof(RadDock)) { RadDock radDock = (RadDock)RadDockLayout1.Controls[i]; List<Assignment> assignments = AssignmentBL.SearchTodayAssignments(3,5,0, SelectedDate); ((Controls.TeacherDateView.TeacherDateViewAssignments)radDock.ContentContainer.Controls[0]).FillData(assignments); radDock.Title = assignments.Count ; } }} private void CreateDocksFirstTime() { RadDock dock3 = CreateRadDock(); //adding the dock to the docklayout and then docking it to the zone to avoid ViewState issues on subsequent postback RadDockLayout1.Controls.Add(dock3); dock3.Dock(RadDockZoneAssignments); dock3.Height = new Unit(300, UnitType.Pixel); CreateSaveStateTrigger(dock3); //Load the selected widget in the RadDock control dock3.Tag = "Controls\\TeacherDateView\\TeacherDateViewAssignments.ascx"; LoadWidget(dock3); } private void LoadWidget(RadDock dock) { if (string.IsNullOrEmpty(dock.Tag)) { return; } Control widget = LoadControl(dock.Tag); widget.EnableViewState = false; dock.ContentContainer.Controls.Add(widget); }protected void Page_Init(object sender, EventArgs e) { //Recreate the docks in order to ensure their proper operation for (int i = 0; i < CurrentDockStates.Count; i++) { RadDock dock = CreateRadDockFromState(CurrentDockStates[i]); RadDockLayout1.Controls.Add(dock); //We want to save the dock state every time a dock is moved. CreateSaveStateTrigger(dock); //Load the selected widget LoadWidget(dock); if (CurrentDockStates[i].Closed == true) { dock.Visible = false; }}}<%@ Page Language="C#" AutoEventWireup="true" CodeFile="addEmployee.aspx.cs" Inherits="addEmployee" %><%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title> <link href="TabStrip.Vista.css" rel="stylesheet" type="text/css" /> <link href="PanelBar.Office2010Silver.css" rel="stylesheet" type="text/css" /> <link href="PanelBar.Vista.css" rel="stylesheet" type="text/css" /> <link rel="stylesheet" type="text/css" href="StyleSheet.css" /> <link href="ComboBox.Office2010Silver.css" rel="stylesheet" type="text/css" /></head><body> <form id="form1" runat="server"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> </telerik:RadScriptManager> <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadTabStrip1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" /> <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1" UnSelectChildren="True" Skin="Vista" EnableEmbeddedSkins="false" ClickSelectedTab="True" AutoPostBack="True" SelectedIndex="0"> <Tabs> <telerik:RadTab runat="server" Text="Personal" Selected="True" PageViewID="RadPageView1"> </telerik:RadTab> <telerik:RadTab runat="server" Text="Racing" PageViewID="RadPageView5"> <Tabs> <telerik:RadTab Text="Running" PageViewID="RadPageView6" /> <telerik:RadTab Text="Swimming" PageViewID="RadPageView7" /> <telerik:RadTab Text="Skiing" PageViewID="RadPageView8" /> </Tabs> </telerik:RadTab> <telerik:RadTab runat="server" Text="Gymnastics" PageViewID="RadPageView9"> <Tabs> <telerik:RadTab Text="Vault" PageViewID="RadPageView10" /> <telerik:RadTab Text="Uneven Bars" PageViewID="RadPageView11" /> <telerik:RadTab Text="Balance Beam" PageViewID="RadPageView12" /> </Tabs> </telerik:RadTab> </Tabs> </telerik:RadTabStrip> <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0"> <telerik:RadPageView ID="RadPageView1" runat="server"> <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server"> <telerik:RadPanelBar runat="server" ID="RadPanelBar1" ExpandMode="FullExpandedItem" Skin="Vista" EnableEmbeddedSkins="false" Width="400px"> <Items> <telerik:RadPanelItem Expanded="true" Text="Employee Personal Information" runat="server" Selected="true"> <Items> <telerik:RadPanelItem Value="AccountInformation" runat="server"> <ItemTemplate> <div class="text" style="background-color: #edf9fe"> <ul class="formList" id="accountInfo"> <li> <asp:Label Width="150px" runat="server" ID="lblFirstName" AssociatedControlID="accountName">First Name</asp:Label> <asp:TextBox ID="accountName" CssClass="textInput" runat="server" ValidationGroup="accountValidation" Width="200px"></asp:TextBox> <asp:RequiredFieldValidator runat="server" ID="rqrdName" ValidationGroup="accountValidation" ControlToValidate="accountName" ErrorMessage="First name is required" Text="*"></asp:RequiredFieldValidator> </li> <li> <asp:Label runat="server" Width="150px" ID="lblMiddle" AssociatedControlID="txtMiddle">Middle Initial</asp:Label> <asp:TextBox ID="txtMiddle" CssClass="textInput" runat="server" Width="200px"></asp:TextBox> </li> <li> <asp:Label runat="server" Width="150px" ID="lblLastName" AssociatedControlID="txtLastName">Last Name</asp:Label> <asp:TextBox CssClass="textInput" ValidationGroup="accountValidation" ID="txtLastName" runat="server" Width="200px"></asp:TextBox> <asp:RequiredFieldValidator runat="server" ValidationGroup="accountValidation" ID="rqrdLast" ControlToValidate="txtLastName" ErrorMessage="LastName is required" Text="*"></asp:RequiredFieldValidator> </li> <li> <asp:Label runat="server" ID="lblSSN" AssociatedControlID="txtSSN" Width="150px">Social Security Number</asp:Label> <telerik:RadMaskedTextBox Mask="###-##-####" runat="server" ID="txtSSN" Width="200px" ValidationGroup="accountValidation"> </telerik:RadMaskedTextBox> <asp:RequiredFieldValidator runat="server" ValidationGroup="accountValidation" ID="rqrdSSN" ControlToValidate="txtSSN" ErrorMessage="SSN is required" Text="*"></asp:RequiredFieldValidator> </li> <li> <asp:Label runat="server" ID="lblHireDate" AssociatedControlID="radDtHiredate" Width="150px">Hire Date</asp:Label> <telerik:RadDatePicker ID="radDtHiredate" Width="200px" runat="server" MinDate="1900-01-01" AutoPostBack="true"> <Calendar ID="calHire" RangeMinDate="1900-01-01" runat="server"> </Calendar> </telerik:RadDatePicker> </li> <li> <asp:Label runat="server" ID="lblGender" AssociatedControlID="RadComboBox1" Width="150px">Gender</asp:Label> <telerik:RadComboBox ID="RadComboBox1" AutoPostBack="true" CssClass="ComboBox" runat="server" Width="200px"> </telerik:RadComboBox> </li> <li> <asp:Label runat="server" ID="lblDob" AssociatedControlID="radDtDOB" Width="150px">Date Of Birth</asp:Label> <telerik:RadDatePicker ID="radDtDOB" Width="200px" runat="server" MinDate="1900-01-01" AutoPostBack="true"> <Calendar ID="calDob" RangeMinDate="1900-01-01" runat="server"> </Calendar> </telerik:RadDatePicker> </li> <li> <asp:Label runat="server" ID="lblPayFrequency" AssociatedControlID="radPayFrequency" Width="150px">Pay Frequency</asp:Label> <telerik:RadComboBox ID="radPayFrequency" AutoPostBack="true" CssClass="ComboBox" runat="server" Width="200px"> </telerik:RadComboBox> </li> </ul> <br /> <asp:ValidationSummary runat="server" ID="validationSummary" CssClass="validationSummary" /> <br /> <br /> </div> </ItemTemplate> </telerik:RadPanelItem> </Items> </telerik:RadPanelItem> </Items> </telerik:RadPanelBar> </telerik:RadAjaxPanel> </telerik:RadPageView> <telerik:RadPageView ID="RadPageView2" runat="server"> <h3 class="title"> Court sports: Tennis</h3> Tennis is a sport played between two players (singles) or between two teams of two players each (doubles). Each player uses a strung racquet to strike a hollow rubber ball covered with felt (most of the time Optic Yellow, but can be any color or even two-tone) over a net into the opponent's court. </telerik:RadPageView> <telerik:RadPageView ID="RadPageView3" runat="server"> <h3 class="title"> Court sports: Badminton</h3> Badminton is a racquet sport played by either two opposing players (singles) or two opposing pairs (doubles), who take positions on opposite halves of a rectangular court that is divided by a net. Players score points by striking a shuttlecock with their racquet so that it passes over the net and lands in their opponents' half of the court. A rally ends once the shuttlecock has struck the ground, and the shuttlecock may only be struck once by each side before it passes over the net. </telerik:RadPageView> <telerik:RadPageView ID="RadPageView4" runat="server"> <h3 class="title"> Court sports: Squash</h3> Squash is a racquet sport that was formerly called squash racquets, a reference to the "squashable" soft ball used in the game (compared with the harder ball used in its parent game Racquets (or rackets; see below)). The game is played by two players (or four players for doubles) with "standard" rackets in a four-walled court with a small, hollow rubber ball. Squash is characterized as a "high-impact" exercise that can place strain on the joints, notably the knees. </telerik:RadPageView> <telerik:RadPageView ID="RadPageView5" runat="server"> <h3 class="title"> Racing sports</h3> <ul> <li>Human-powered: running (many types), swimming (many types), skiing (many types), ice speed skating</li> <li>Human-assisted: cycling (several types), rowing, canoeing, kayaking, dragon boat racing, wheelchair racing, bobsledding and luge</li> <li>Animal and animal-assisted: horse racing (several types), greyhound racing, pigeon racing, dog racing, chariot racing</li> <li>Machine-powered: auto racing (many types), motorboat racing, motorcycle racing (many varieties), air racing</li> </ul> </telerik:RadPageView> <telerik:RadPageView ID="RadPageView6" runat="server"> <h3 class="title"> Racing sports: Running</h3> Running is both a competition and a type of training for sports which have running or endurance components. As a sport it is split into events divided by distance and sometimes includes permutations such as the obstacles in Steeplechase and hurdles. Running races are contests to determine which of the competitors is able to run a certain distance in the shortest time. Today, competitive running events make up the core of the sport of athletics. Events are usually grouped into several classes, each requiring substantially different athletic strengths and involving different tactics, training methods, and types of competitors. <br /> Running competitions have probably existed for most of humanity's history, and were a key part of the ancient Olympic Games as well as the modern Olympics. Today, road racing is a popular sport among non-professional athletes, who included over 7.7 million people in America alone in 2002. </telerik:RadPageView> <telerik:RadPageView ID="RadPageView7" runat="server"> <h3 class="title"> Racing sports: Swimming</h3> The goal of competitive swimming is to be the fastest over a given distance. Competitive swimming became popular in the nineteenth century, and comprises 36 individual events - 18 male events and 18 female events, however the IOC only recognizes 34 events - 17 male and 17 female events. Swimming is an event at the Summer Olympic Games, where male and female athletes compete in 13 of the recognized events each. Olympic events are held in a 50 meter pool. Competitive swimming's international governing body is FINA (Fédération Internationale de Natation), the International Swimming Federation.<br /> The four competitive strokes are the butterfly, backstroke, breaststroke, and front crawl (freestyle). "Freestyle" and "front crawl" are often used interchangeably, but "freestyle" properly refers to an unregulated competitive event rather than to any particular stroke. Swimmers generally choose to swim front crawl in a freestyle event since it is the fastest stroke. In events that require specific strokes, disqualification will occur if the stroke is not swum correctly, for example if the swimmer does not touch the wall with two hands during breaststroke or butterfly. </telerik:RadPageView> <telerik:RadPageView ID="RadPageView8" runat="server"> <h3 class="title"> Racing sports: Skiing</h3> Snow skiing is a group of sports utilizing skis as primary equipment. Skis are used in conjunction with boots that connect to the ski with use of a binding. Although snowboarding shares the general characteristics of skiing sports, it evolved from surfing and skateboarding and so is not considered a type of skiing. The posture assumed in snowboarding is a side on action whereas the skiing posture is primarily front facing.<br /> Skiing can be grouped into two general categories. Nordic skiing is the oldest category and includes sport that evolved from skiing as done in Scandinavia. Nordic style bindings attach at the toes of the skier's boots, but not at the heels. Alpine skiing includes sports that evolved from skiing as done in the Alps. Alpine bindings attach at both the toe and the heel of the skier's boots. As with many disciplines, such as Telemark skiing, there is some crossover. However, binding style and history tend to dictate whether a style is considered Nordic or Alpine. Thus, in view of its lack of a locking heel, and its roots in Telemark, Norway, Telemark is generally considered a Nordic discipline. </telerik:RadPageView> <telerik:RadPageView ID="RadPageView9" runat="server"> <h3 class="title"> Gymnastics</h3> Gymnastics is a sport involving performance of exercises requiring physical strength, agility and coordination. Artistic Gymnastics is the best known and most popular of the gymnastics sports governed by the Fédération Internationale de Gymnastique (FIG). It typically involves exercises on uneven bars, balance beam, floor exercise, and vault (for women), and high bar, parallel bars, still rings, floor exercise, vault, and pommel horse (for men). It evolved from exercises used by the ancient Greeks, including skills for mounting and dismounting a horse, and circus performance skills. Other forms of gymnastics are rhythmic gymnastics, various trampolining sports and aerobic and acrobatic gymnastics. </telerik:RadPageView> <telerik:RadPageView ID="RadPageView10" runat="server"> <h3 class="title"> Gymnastics: Vault</h3> In the vaulting events gymnasts: sprint down a 25 meter (about 82 feet) runway, jump onto a beatboard - a kind of springboard, (run/ take-off segment), land momentarily, generally inverted on the hands, on the vaulting horse or vaulting table, (pre flight segment), then spring or block off of this platform to a two footed landing (post flight segment). The post flight segment may include one or more multiple saltos or somersaults, and or twisting movements. In 2001, the traditional vaulting horse was replaced with a new apparatus, sometimes known as a tongue or table. The new apparatus is more stable, wider, and longer than the older vaulting horse - approx. 1m in length and 1m in width, gives gymnasts a larger blocking surface, and is therefore safer than the old vaulting horse. With the addition of this new, safer vaulting table, gymnasts are attempting more difficult and dangerous vaults. </telerik:RadPageView> <telerik:RadPageView ID="RadPageView11" runat="server"> <h3 class="title"> Gymnastics: Uneven Bars</h3> On the uneven bars (also known as asymmetric bars, UK), the gymnast navigates two horizontal bars set at different heights. The height is generally fixed, but the width may be adjusted. Gymnasts perform swinging, circling, transitional, and release moves,that may pass over, under, and between the two bars. Movements may pass through the handstand. Gymnasts often mount the Uneven Bars using a beatboard (springboard). </telerik:RadPageView> <telerik:RadPageView ID="RadPageView12" runat="server"> <h3 class="title"> Gymnastics: Balance Beam</h3> The gymnast performs a choreographed routine from 60 to 80 seconds in length consisting of leaps, acrobatic skills, somersaults, turns and dance elements on a padded sprung beam. Apparatus norms set by the International Gymnastics Federation (used for Olympic and most elite competitions) specify the beam must be 125 cm (4' 1") high, 500 cm (16' 5") long, and 10 cm (4") wide. The event requires in particular, balance, flexibility and strength. </telerik:RadPageView> </telerik:RadMultiPage> <div> </div> </form></body></html><telerik:RadScriptManager ID="RadScriptManager1" runat="server"/> <telerik:RadSkinManager ID="RadSkinManager1" Runat="server"> </telerik:RadSkinManager> <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" EnableSkinTransparency="true" > </telerik:RadAjaxLoadingPanel> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="radTreeList1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="radTreeList1" LoadingPanelID="RadAjaxLoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <telerik:RadDockLayout runat="server" ID="RadDockLayout1"> <telerik:RadDockZone runat="server" ID="RadDockZone1" Style="float: left; margin-right: 15px;" Width="310" BorderStyle="none"> <telerik:RadDock runat="server" ID="dockSwitched" DefaultCommands="ExpandCollapse" EnableRoundedCorners="true" style="padding-bottom:10px;" height="200px" EnableDrag="false"> <ContentTemplate> <telerik:RadTreeList ID="radTreeList1" runat="server" Width="275px" DataKeyNames="ID" ParentDataKeyNames="PID" ShowOuterBorders="false" AutoGenerateColumns="false" AllowPaging="false" AllowSorting="true"> <Columns> <telerik:TreeListBoundColumn DataField="Text" HeaderText="Text" SortExpression="Text"><HeaderStyle HorizontalAlign="Center" /><ItemStyle Wrap="false" /></telerik:TreeListBoundColumn> <telerik:TreeListBoundColumn DataField="ID" HeaderText="ID" SortExpression="ID"><HeaderStyle HorizontalAlign="Center" /><ItemStyle Wrap="false" /></telerik:TreeListBoundColumn> <telerik:TreeListBoundColumn DataField="PID" HeaderText="Parent" SortExpression="PID"><HeaderStyle HorizontalAlign="Center" /><ItemStyle Wrap="false" /></telerik:TreeListBoundColumn> </Columns> </telerik:RadTreeList> </ContentTemplate> </telerik:RadDock> </telerik:RadDockZone> </telerik:RadDockLayout>Partial Class Test Inherits System.Web.UI.Page Protected Sub radTreeList1_ItemCommand(sender As Object, e As Telerik.Web.UI.TreeListCommandEventArgs) Handles radTreeList1.ItemCommand System.Threading.Thread.Sleep(5000) End Sub Protected Sub radTreeList1_NeedDataSource(sender As Object, e As Telerik.Web.UI.TreeListNeedDataSourceEventArgs) Handles radTreeList1.NeedDataSource Dim list As New ArrayList() list.Add(New TestListItem(1, "Item 1", 2)) list.Add(New TestListItem(2, "Item 2", Nothing)) list.Add(New TestListItem(3, "Item 3", 2)) list.Add(New TestListItem(4, "Item 4", 5)) list.Add(New TestListItem(5, "Item 5", Nothing)) list.Add(New TestListItem(6, "Item 6", 2)) list.Add(New TestListItem(7, "Item 7", 5)) list.Add(New TestListItem(8, "Item 8", 3)) list.Add(New TestListItem(9, "Item 9", 3)) list.Add(New TestListItem(10, "Item 10", 3)) list.Add(New TestListItem(11, "Item 5", Nothing)) list.Add(New TestListItem(12, "Item 5", Nothing)) list.Add(New TestListItem(13, "Item 5", Nothing)) list.Add(New TestListItem(14, "Item 5", Nothing)) list.Add(New TestListItem(15, "Item 5", Nothing)) list.Add(New TestListItem(16, "Item 5", Nothing)) list.Add(New TestListItem(17, "Item 5", Nothing)) list.Add(New TestListItem(18, "Item 5", Nothing)) list.Add(New TestListItem(19, "Item 5", Nothing)) list.Add(New TestListItem(20, "Item 10", 3)) list.Add(New TestListItem(21, "Item 5", Nothing)) list.Add(New TestListItem(22, "Item 5", Nothing)) list.Add(New TestListItem(23, "Item 5", Nothing)) list.Add(New TestListItem(24, "Item 5", Nothing)) list.Add(New TestListItem(25, "Item 5", Nothing)) list.Add(New TestListItem(26, "Item 5", Nothing)) list.Add(New TestListItem(27, "Item 5", Nothing)) list.Add(New TestListItem(28, "Item 5", Nothing)) list.Add(New TestListItem(29, "Item 5", Nothing)) radTreeList1.DataSource = list End Sub Public Class TestListItem Public Property ID() As System.Nullable(Of Integer) Get Return m_ID End Get Set(ByVal value As System.Nullable(Of Integer)) m_ID = Value End Set End Property Private m_ID As System.Nullable(Of Integer) Public Property PID() As System.Nullable(Of Integer) Get Return m_PID End Get Set(ByVal value As System.Nullable(Of Integer)) m_PID = Value End Set End Property Private m_PID As System.Nullable(Of Integer) Public Property Text() As String Get Return m_Text End Get Set(ByVal value As String) m_Text = Value End Set End Property Private m_Text As String Public Sub New(ByVal id__1 As System.Nullable(Of Integer), ByVal text__2 As String, ByVal pid__3 As System.Nullable(Of Integer)) ID = id__1 Text = text__2 PID = pid__3 End Sub End ClassEnd Class
ClientScript.GetWebResourceUrl(GetType(RadGrid),"Telerik.Web.UI.Skins.Office2007.Grid.Office2007.css")
and then pass the result as an absolute path to the pane.print() method.
This doesn't seem to work since upgrading to the latest controls and the external Skins assembly. It worked before.
The "Telerik.Web.UI.Skins.Office2007.Grid.Office2007.css" seems like it ought to work, but my print page is not applying the grid skin. Is there some alteration I need to make to this code to reference the grid skin?