or
ClientSettings-Scrolling-AllowScroll
="true"

| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <asp:Content ID="Content1" ContentPlaceHolderID="cntrlMainPlaceHolder" Runat="Server"> |
| <asp:UpdatePanel ID="cntrlTest" UpdateMode="Conditional"> |
| <ContentTemplate> |
| <telerik:RadCalendar ID="cntrlDiaryCalendar" AutoPostBack="true" EnableMultiSelect="false" Width="100%" runat="server" /> |
| </ContentTemplate> |
| </asp:UpdatePanel> |
| <asp:UpdatePanel runat="server" ID="UpdatePanel1" UpdateMode="Conditional"> |
| <ContentTemplate> |
| <telerik:RadScheduler runat="server" ID="RadScheduler1" Width="750px" Skin="WebBlue" |
| EnableEmbeddedSkins="True" TimeZoneOffset="03:00:00" SelectedDate="2008-09-11" |
| DayStartTime="08:00:00" DayEndTime="18:00:00" |
| DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start" DataEndField="End" |
| DisplayDeleteConfirmation="false"> |
| <TimelineView UserSelectable="false" /> |
| <AppointmentTemplate> |
| XX |
| </AppointmentTemplate> |
| </telerik:RadScheduler> |
| <telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Width="300" Height="150" |
| Skin="WebBlue" Animation="None" Position="BottomRight" Sticky="true" Text="Loading..." AutoTooltipify="false" |
| > |
| <TargetControls> |
| <telerik:ToolTipTargetControl TargetControlID="xx" IsClientID="true" /> |
| </TargetControls> |
| </telerik:RadToolTipManager> |
| <asp:Timer ID="tmrTest" Interval="1" Enabled="true" runat="server" /> |
| </ContentTemplate> |
| </asp:UpdatePanel> |
| </asp:Content> |
| Partial Class Test |
| Inherits System.Web.UI.Page |
| Protected Sub RadToolTipManager1_AjaxUpdate(ByVal sender As Object, ByVal e As Telerik.Web.UI.ToolTipUpdateEventArgs) Handles RadToolTipManager1.AjaxUpdate |
| End Sub |
| Protected Sub RadScheduler1_AppointmentCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.AppointmentCreatedEventArgs) Handles RadScheduler1.AppointmentCreated |
| RadToolTipManager1.TargetControls.Add(e.Appointment.ClientID, True) |
| End Sub |
| Protected Sub tmrTest_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles tmrTest.Tick |
| tmrTest.Enabled = False |
| getdata() |
| End Sub |
| Private Sub getdata() |
| Dim oItems As New List(Of Appointment) |
| oItems.Add(New Appointment(1, "testing", Date.Now)) |
| RadScheduler1.DataSource = oItems |
| RadScheduler1.DataBind() |
| End Sub |
| End Class |
| Public Class Appointment |
| Private _id As Integer = 0 |
| Private _Subject As String = String.Empty |
| Private _Start As DateTime = Date.Now |
| Public ReadOnly Property Id() As Integer |
| Get |
| Return _id |
| End Get |
| End Property |
| Public ReadOnly Property Subject() As String |
| Get |
| Return _Subject |
| End Get |
| End Property |
| Public ReadOnly Property Start() As DateTime |
| Get |
| Return _Start |
| End Get |
| End Property |
| Public ReadOnly Property [End]() As DateTime |
| Get |
| Return Start.AddHours(1) |
| End Get |
| End Property |
| Public Sub New(ByVal Id As Integer, ByVal Subject As String, ByVal Start As DateTime) |
| _id = Id |
| _Subject = Subject |
| _Start = Start |
| End Sub |
| End Class |
| <radG:RadGrid ID="rgCampaignTypes" Skin="MTCDefault_Small_EditInPlace" EnableAJAX="false" EnableAJAXLoadingTemplate="false" runat="server" |
| AllowAutomaticDeletes="True" AllowAutomaticInserts="True" Width="100%" PageSize="20" AllowMultiRowSelection="false" |
| AllowAutomaticUpdates="True" AllowPaging="True" AutoGenerateColumns="False" ShowStatusBar="False" AllowMultiRowEdit="False"> |
| <PagerStyle Mode="NextPrevAndNumeric" /> |
| <ClientSettings> |
| <Resizing allowColumnResize="true" /> |
| </ClientSettings> |
| <MasterTableView Height="150px" NoMasterRecordsText="No Campaign Types have been defined." |
| Width="100%" CommandItemDisplay="Top" HorizontalAlign="NotSet" AutoGenerateColumns="False"> <CommandItemSettings AddNewRecordText="Add New Campaign Type" /> |
| <Columns> |
| <radG:GridButtonColumn UniqueName="DeleteColumn" ButtonType="ImageButton" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="45px" HeaderText="Delete" CommandName="Delete" ImageUrl="~/RadControls/Grid/Skins/MTCDefault/Delete-account-16.gif"> |
| </radG:GridButtonColumn> |
| <radG:GridEditCommandColumn EditImageUrl="~/RadControls/Grid/Skins/MTCDefault/edit-16.gif" UniqueName="EditCommandColumn" ButtonType="ImageButton" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="45px" HeaderText="Edit"> |
| </radG:GridEditCommandColumn> |
| <radG:GridBoundColumn UniqueName="CampaignTypeName" DataField="TypeName" HeaderText="Campaign Type"></radG:GridBoundColumn> <radG:GridBoundColumn UniqueName="CampaignTypeID" DataField="CampaignTypeID" Visible="False" ReadOnly="True"> |
| </radG:GridBoundColumn> |
| </Columns> |
| <EditFormSettings EditFormType="Template"> |
| <FormTableItemStyle width="100%"></FormTableItemStyle> |
| <FormTableStyle GridLines="None" CellSpacing="0" CellPadding="2"></FormTableStyle> |
| <FormStyle Width="100%" backColor="white"></FormStyle> |
| <EditColumn UniqueName="EditCommandColumn1"></EditColumn> |
| <FormTemplate> |
| <asp:Table runat="Server"> |
| <asp:TableRow> |
| <asp:TableCell> |
| <asp:TextBox id="txtCampaignTypeName" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.TypeName" ) %>'></asp:TextBox> |
| </asp:TableCell> |
| </asp:TableRow> |
| <asp:TableRow> |
| <asp:TableCell> |
| <asp:button id="btnInsert" text="Insert" CssClass="button" runat="server" CausesValidation="false" commandname="PerformInsert"> |
| </asp:button> |
| <asp:button id="btnCancel" text="Cancel" CssClass="button" runat="server" causesvalidation="False" commandname="Cancel"></asp:button> |
| </asp:TableCell> |
| </asp:TableRow> |
| </asp:Table> |
| </FormTemplate> |
| </EditFormSettings> |
| </MasterTableView> |
| </radG:RadGrid> |