or
<div id="chartdiv" style="height:300px; width:600px; border: none;"></div><telerik:RadPageView ID="Achievement" runat="server"> <div class="responseDiv"><asp:Label ID = "AchievementLabel" runat="server"></asp:Label></div> <script type="text/javascript"> (function ($) { $(window).load(function () { var exceedPoints = [['3rd', 218], ['4th', 223]]; var plot1 = $.jqplot('chartdiv', [exceedPoints], { seriesDefaults: { pointLabels: { show: true } }, series: [{ label: 'Exceed' }], grid: { drawGridlines: false }, seriesColors: ['#666699'], title: 'Reading Scores' }); }); })($telerik.$); </script></telerik:RadPageView><AdvancedEditTemplate> <scheduler:AdvancedForm runat="server" ID="AdvancedEditForm1" Mode="Edit" Subject='<%# Bind("Subject") %>' Description='<%# Bind("Description") %>' Start='<%# Bind("Start") %>' End='<%# Bind("End") %>' RecurrenceRuleText='<%# Bind("RecurrenceRule") %>' CategoriaID='<%# Bind("IDTimeLineResource") %>' /> </AdvancedEditTemplate> <AdvancedInsertTemplate> <scheduler:AdvancedForm runat="server" ID="AdvancedInsertForm1" Mode="Insert" Subject='<%# Bind("Subject") %>' Start='<%# Bind("Start") %>' End='<%# Bind("End") %>' Description='<%# Bind("Description") %>' RecurrenceRuleText='<%# Bind("RecurrenceRule") %>' CategoriaID='<%# Bind("IDTimeLineResource") %>' /> </AdvancedInsertTemplate>e.Appointment.Resources.Count is 0)Protected Sub RadScheduler1_AppointmentInsert(ByVal sender As Object, ByVal e As Telerik.Web.UI.AppointmentInsertEventArgs) Handles RadScheduler1.AppointmentInsert LogManager.WriteToDebugLog("c:\log\", "RadScheduler1_AppointmentInsert " & e.Appointment.Resources.Count) If e.Appointment.Resources.Count > 0 Then If e.Appointment.Resources.GetResourceByType("Categoria") IsNot Nothing Then Dim myCategory As Long = Convert.ToInt32(e.Appointment.Resources.GetResourceByType("Categoria").Key) Dim myScheduler As New Adept.CScheduler(myConn) Dim newID As Long = myScheduler.NewAppointment(e.Appointment.Start, e.Appointment.End, e.Appointment.Subject, e.Appointment.Start, e.Appointment.End, e.Appointment.Start, e.Appointment.End, e.Appointment.Description, , , , myCategory) myScheduler = Nothing End If End If End Sub<asp:Panel runat="server" ID="ResourceControls"> <%-- RESOURCE CONTROLS --%> <ul class="rsResourceControls"> <li> <!-- Resource controls should follow the convention Res[Resource Name] for ID --> <scheduler:ResourceControl runat="server" ID="ResCategoriaID" Type="Categoria" Label="Categoria:" Skin='<%# Owner.Skin %>' /> </li> </ul> </asp:Panel><Bindable(BindableSupport.Yes, BindingDirection.TwoWay)> _ Public Property CategoriaID() As Object Get'IT DOES gET THE RIGHT CATEGORY. IT WORKS! 'LogManager.WriteToDebugLog("c:\log\", "GET BindableSupport CategoriaID " & ResCategoriaID.Value) Return ResCategoriaID.Value End Get Set(ByVal value As Object) ResCategoriaID.Value = value'IT DOES SET THE RIGHT CATEGORY. IT WORKS! 'LogManager.WriteToDebugLog("c:\log\", "SET BindableSupport CategoriaID " & value) End Set End Property<Bindable(BindableSupport.Yes, BindingDirection.TwoWay)> _ Public Property Value() As Object Get If ResourceValue.SelectedValue <> "NULL" Then 'LogManager.WriteToDebugLog("c:\log\", "Value " & DeserializeResourceKey(ResourceValue.SelectedValue)) Return DeserializeResourceKey(ResourceValue.SelectedValue) 'IT WORKS! End If Return "" End Get Set(ByVal value As Object) End Set End Property
<add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" /><telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnableScriptCombine="true"> </telerik:RadScriptManager><Scripts> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Grid.RadGrid.js" /> </Scripts>
<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; }}}