<telerik:GridHyperLinkColumn HeaderText="" UniqueName="View" DataTextField="CheckType" DataTextFormatString="View" DataNavigateUrlFields="CheckNumber,CheckType" DataNavigateUrlFormatString="javascript:ViewCheck({0},'{1}')"> <HeaderStyle Width="100px" /> <ItemStyle HorizontalAlign="Right"/></telerik:GridHyperLinkColumn>//When the user drops a RadListBoxItem onto the dashboard we have to figure out//what RadDockZone the control was dropped onto, rip out information about the event,//and then pass that data to the server for processing.function OnClientDropping(sender, eventArgs) { eventArgs.set_cancel(true); sender.clearSelection(); previousZone = null; var sourceItem = eventArgs.get_sourceItem(); var droppedID = eventArgs.get_htmlElement().id; if (droppedID.indexOf("RadDockZone") != -1) { var dockZoneDroppedOn = $find(droppedID); if (dockZoneDroppedOn.get_docks().length == 0) { dockZoneDroppedOnID = droppedID; var eventData = {}; eventData["sourceItemText"] = sourceItem.get_text(); eventData["sourceItemValue"] = sourceItem.get_value(); eventData["listBoxID"] = sender.get_id(); if (queue.length == 0) { queue.push(dockZoneDroppedOn._uniqueID); queue.push(eventData); __doPostBack(dockZoneDroppedOn._uniqueID, $.toJSON(eventData)); } else { queue.push(dockZoneDroppedOn._uniqueID); queue.push(eventData); } } } else { dockZoneDroppedOnID = ""; }}<cs:CormantRadPane ID="RadPane2" Runat="Server" BackColor="White" > <nStuff:StyledUpdatePanel Runat="Server" ID="UpdatePanel1" UpdateMode="Conditional" CssClass="maxHeight" > <ContentTemplate> <cs:CormantRadSplitter ID="RadSplitter3" Runat="Server" Visible="false" /> <cs:CormantRadDockZone ID="RadDockZone1" Runat="Server" /> </ContentTemplate> </nStuff:StyledUpdatePanel></cs:CormantRadPane>/// <summary>/// Shows where docks can/can't be moved. Forbidden zones are all DockZone's with Docks. /// So, a dock can move to any other dockZone that does not have a control. Those are the allowed zones./// Its own spot is allowed so that the highlighting looks correct -- but it is not necessary./// </summary>public void SynchForbiddenZones(){ IEnumerable<CormantRadDockZone> dockZonesWithDocks = LayoutManager.Instance.RegisteredDockZones.Where(dockZone => dockZone.Docks.Any()); ForbiddenZones = dockZonesWithDocks.Select(dockZone => dockZone.ID).ToArray(); Logger.DebugFormat("Forbidden zones for dock: {0} are {1}", ID, ForbiddenZones);}public void SyncAndUpdate(){ SynchForbiddenZones(); GetWrappingUpdatePanel().Update();}<telerik:GridBoundColumn HeaderStyle-CssClass='GridHeaderGreen ca' ItemStyle-CssClass='ca' DataField="Description" HeaderText="Description" SortExpression="WIZARD.FORM.DESCRIPTION"/><th class="GridHeaderGreen ca rgHeader" scope="col"><a href="javascript:__doPostBack('ctl00$cphMain$wizardClientFormView$rgClientFormView$ctl00$ctl02$ctl02$ctl01','')" title="Click here to sort">Description</a></th>MESSAGE: Exception has been thrown by the target of an invocation. STACKTRACE: at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Telerik.Web.UI.GridBoundColumn.GetAggregate(IEnumerable enumerable, IQueryable queryable, String fieldName, Type dataType, GridAggregateFunction func) at Telerik.Web.UI.GridBoundColumn.ApplyAggregates35(TableCell cell, String footerText) at Telerik.Web.UI.GridBoundColumn.cell_DataBinding(Object sender, EventArgs e) at System.Web.UI.Control.OnDataBinding(EventArgs e) at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBind() at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBind() at Telerik.Web.UI.GridItem.SetupItem(Boolean dataBind, Object dataItem, GridColumn[] columns, ControlCollection rows) at Telerik.Web.UI.GridTableView.CreateFooterItem(Boolean useDataSource, GridColumn[] copiedColumnSet, GridTFoot tfoot) at Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) at Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) at System.Web.UI.WebControls.DataBoundControl.PerformSelect() at Telerik.Web.UI.GridTableView.PerformSelect() at System.Web.UI.WebControls.BaseDataBoundControl.DataBind() at Telerik.Web.UI.GridTableView.DataBind() at Telerik.Web.UI.RadGrid.DataBind() at Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason) at Telerik.Web.UI.RadGrid.Rebind() at Adver.Vis.Pages.Reports.BackofficePublish.BtnFilter_OnClick(Object sender, EventArgs e) in C:\_vsp\XXXX.aspx.cs:line 48 at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) <telerik:RadGrid ID="RadGrid1" AllowSorting="True" AllowPaging="false" runat="server" GridLines="None" Width="100%" OnExcelMLExportStylesCreated="RadGrid1_ExcelMLExportStylesCreated" OnExcelMLExportRowCreated="RadGrid1_ExcelMLExportRowCreated" OnItemCommand="RadGrid1_ItemCommand" OnItemDataBound="RadGrid_OnItemDataBound" AutoGenerateColumns="false" OnNeedDataSource="RadGrid_OnNeedDataSource" ShowFooter="true"> <ClientSettings EnableRowHoverStyle="true" /> <MasterTableView Width="100%" CommandItemDisplay="Top" OverrideDataSourceControlSorting="true" UseAllDataFields="true"> <PagerStyle Mode="NextPrevNumericAndAdvanced" /> <CommandItemSettings ShowExportToWordButton="true" ShowExportToExcelButton="true" ShowExportToCsvButton="true" ShowExportToPdfButton="true" AddNewRecordImageUrl="../../Img/spacer.gif" AddNewRecordText=""/> <Columns> <telerik:GridTemplateColumn HeaderText="Medewerkers"> <ItemTemplate> <asp:Label ID="lbl_FirstName" runat="server"><%# Eval("User.FirstName")%></asp:Label> <asp:Label ID="lbl_Lastname" runat="server"><%# Eval("User.LastName")%></asp:Label> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridBoundColumn UniqueName="ClPublishVac" HeaderText="Text" DataField="TotalPublish" Aggregate="Sum" FooterAggregateFormatString="Totaal :{0}"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="ClUpdateVac" HeaderText="Text" DataField="TotalUpdate" Aggregate="Sum" FooterAggregateFormatString="Totaal :{0}"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="CLRefreshVac" HeaderText="Text" DataField="TotalRefresh" Aggregate="Sum" FooterAggregateFormatString="Totaal :{0}"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="ClDeleteVac" HeaderText="Text" DataField="TotalDelete" Aggregate="Sum" FooterAggregateFormatString="Totaal :{0}"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="ClTotal" HeaderText="Totaal" DataField="Total" Aggregate="Sum" FooterAggregateFormatString="Totaal :{0}"> </telerik:GridBoundColumn> </Columns> </MasterTableView> </telerik:RadGrid>protected void Page_Load(object sender, EventArgs e) { RadMenuItem top1 = new RadMenuItem(); top1.GroupSettings.Flow = ItemFlow.Horizontal; top1.Text = "Top 1"; top1.ImageUrl = "~/Images/NotStarted.png"; RadMenuItem child1 = new RadMenuItem(); child1.Text = "Child 1"; child1.ImageUrl = "~/Images/Completed.png"; RadMenuItem child2 = new RadMenuItem(); child2.Text = "Child 2"; child2.ImageUrl = "~/Images/Failed.png"; top1.Items.Add(child1); top1.Items.Add(child2); RadMenuItem top2 = new RadMenuItem(); top2.GroupSettings.Flow = ItemFlow.Horizontal; top2.Text = "Top 2"; top2.ImageUrl = "~/Images/Unknown.png"; RadMenuItem child3 = new RadMenuItem(); child3.Text = "Child 3"; child3.ImageUrl = "~/Images/Completed.png"; RadMenuItem child4 = new RadMenuItem(); child4.Text = "Child 4"; child4.ImageUrl = "~/Images/Failed.png"; RadMenuItem child5 = new RadMenuItem(); child5.Text = "Child 5"; child5.ImageUrl = "~/Images/NotStarted.png"; top2.Items.Add(child3); top2.Items.Add(child4); top2.Items.Add(child5); WorkFlowMenu.Items.Add(top1); WorkFlowMenu.Items.Add(top2); }<form id="form1" runat="server"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> </telerik:RadScriptManager> <telerik:RadMenu ID="WorkFlowMenu" runat="server" > </telerik:RadMenu> </form><%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <%@ 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> </head> <body> <form id="form1" runat="server"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> </telerik:RadScriptManager> <telerik:RadMenu ID="WorkFlowMenu" runat="server" > </telerik:RadMenu> <div> </div> </form> </body> </html> protected void Page_Load(object sender, EventArgs e) { RadMenuItem top1 = new RadMenuItem(); top1.Text = "Top 1"; top1.ImageUrl = "~/Images/NotStarted.png"; RadMenuItem child1 = new RadMenuItem(); child1.Text = "Child 1"; child1.ImageUrl = "~/Images/Completed.png"; RadMenuItem child2 = new RadMenuItem(); child2.Text = "Child 2"; child2.ImageUrl = "~/Images/Failed.png"; top1.Items.Add(child1); top1.Items.Add(child2); top1.GroupSettings.Flow = ItemFlow.Horizontal; WorkFlowMenu.Items.Add(top1); }
private void PopulateChart(DataTable dt)
{
// pull fields I need an calculate the shift age.
var query1 = from data in dt.AsEnumerable()
where data.Field<string>("Facility_Code").ToString().Trim() == "DOKE"
|| data.Field<
string>("Facility_Code").ToString().Trim() == "ALAM"
select new
{
FacilityCode = data.Field<
string>("Facility_Code").ToString()
,ShiftAge = data.Field<
DateTime>("Shift_Date") - DateTime.Now
};
// build 0-7 day chart series
TimeSpan ts = new TimeSpan(8, 0, 0, 0); // time span 8 days
// get all my shifts less than 8 days.
var query2 = from row in query1
where row.ShiftAge < ts
group row by row.FacilityCode into grp
orderby grp.Key
select new
{
FacilityCode = grp.Key,
Shifts = grp.Count()
};
 
// get all my shifts greater or equal to 8 days
var query3 = from row in query1
where row.ShiftAge >= ts
group row by row.FacilityCode into grp
orderby grp.Key
select new
{
FacilityCode = grp.Key,
Shifts = grp.Count()
};
 
Telerik.Charting.
ChartSeries csUnderEight = new Telerik.Charting.ChartSeries();
csUnderEight.Type = Telerik.Charting.
ChartSeriesType.StackedBar;
csUnderEight.Name =
"Open shifts within 0-7 days.";
csUnderEight.DataLabelsColumn =
"FacilityCode";
csUnderEight.Appearance.LabelAppearance.LabelLocation = Telerik.Charting.Styles.
StyleSeriesItemLabel.ItemLabelLocation.Outside;
Telerik.Charting.
ChartSeries csEightAndOver = new Telerik.Charting.ChartSeries();
csEightAndOver.Type = Telerik.Charting.
ChartSeriesType.StackedBar;
csEightAndOver.Name =
"Open shifts within 8-14 days.";
csEightAndOver.DataLabelsColumn =
"FacilityCode";
csEightAndOver.Appearance.LabelAppearance.LabelLocation = Telerik.Charting.Styles.
StyleSeriesItemLabel.ItemLabelLocation.Outside;
// csEightAndOver.DataLabelsColumn = "FacilityCode";
this.chartOpenShifts.Series.Add(csUnderEight);
this.chartOpenShifts.Series.Add(csEightAndOver);
foreach (var item in query2)
{
csUnderEight.AddItem(item.Shifts,item.FacilityCode);
}
foreach (var item in query3)
{
csEightAndOver.AddItem(item.Shifts,item.FacilityCode);
}
this.chartOpenShifts.DataGroupColumn = "FacilityCode";
//this.chartOpenShifts.PlotArea.XAxis.DataLabelsColumn = "FacilityCode";
//this.chartOpenShifts.PlotArea.DataTable.Visible = true;
//this.chartOpenShifts.DataSource =query;
//this.chartOpenShifts.Series
//this.chartOpenShifts.PlotArea.XAxis.DataLabelsColumn = "Facility_Code";
//this.chartOpenShifts.DataBind();
}

<div id="divSchedular" runat="server"> <div style="width: 810px; background: transparent url('Images/background.png') no-repeat 0 0; padding-left: 20px;"> <telerik:RadScheduler runat="server" ID="RadScheduler1" Skin="Web20" CustomAttributeNames="DisplayStartTime,EventRecurrenceId, EventColor, DisplayEndTime, StartDate,EndDate,DisplayPermitName,DisplayFacilityVisibility,DisplayClientVisibility,DisplayResourceVisibility,Id,DisplayPermitVisibility,DisplayFacilityname,DisplayResourceName,DisplayClientName" DataStartField="StartDate" EnableDatePicker="true" GroupingDirection="Horizontal" EnableEmbeddedSkins="true" DataDescriptionField="EventColor" MonthView-GroupingDirection="Horizontal" DataEndField="EndDate" ShowFullTime="true" DataKeyField="Id" DataRecurrenceParentKeyField="EventRecurrenceId" DataRecurrenceField="EventRecurrenceId" FirstDayOfWeek="Sunday" LastDayOfWeek="Saturday" DataSubjectField="DisplayPermitName" AllowDelete="false" AllowEdit="false" TimelineView-NumberOfSlots="7" AllowInsert="false" OnAppointmentDataBound="RadScheduler1_AppointmentDataBound"> <advancedform modal="true" /> <%--daystarttime="08:00:00" dayendtime="23:00:00"--%> <appointmenttemplate> <div> <table> <tr> <td id="divColorChange" runat="server" width="0.5%"> <div> </div> </td> <td> <%--CustomAttributeNames="StartTime,EndTime,SessionDate,DisplayPermitName,StartDate,DisplayClientVisibility,DisplayResourceVisibility,DisplayFacilityVisibility,EndDate,ID,DisplayPermitVisibility,DisplayFacilityName,DisplayResourceName,DisplayClientName,Event_ID,DisplayRoomNumber"--%> <div class="AlignCenter"> <%--Permit Name--%> <asp:Image ID="imageRecurrenceIcon" runat="server" ImageUrl="~/Images/Icon_Info.gif" /> <asp:LinkButton runat="server" ID="lblDisplayPermitName" OnClick="RedirectToEventMaintenance" Style="font-weight: bold; color: Black; word-wrap: break-word; font-size: 12px;" Visible='<%# Convert.ToBoolean(Eval("DisplayPermitVisibility")) %>' CommandArgument='<%# Eval("Id") + "~" + Eval("StartDate")%>'> <%# Eval("DisplayPermitName")%> </asp:LinkButton> <asp:Label ID="labelPermitName" Style="font-weight: normal; color: Black; word-wrap: break-word; font-size: 10px;" runat="server" Text='<%# Eval("DisplayPermitName")%>' CssClass="FontBold"></asp:Label> <br /> <%--Start Time--%> <%--End Time--%> <asp:Label runat="server" ID="lblStartTime" Style="font-weight: normal; word-wrap: break-word; color: Black; font-size: 10px; text-align: left; float: left;"> <%# Eval("DisplayStartTime")%></asp:Label> - <asp:Label runat="server" ID="lblEndTime" Style="font-weight: normal; word-wrap: break-word; color: Black; font-size: 10px; text-align: left; float: left;"> <%# Eval("DisplayEndTime")%></asp:Label> <br /> <%--Client Name--%> <asp:Label runat="server" ID="lblDisplayClientTypeName" Style="font-weight: normal; word-wrap: break-word; color: Black; font-size: 10px; width: 95px; text-align: left; float: left;" Visible='<%# Convert.ToBoolean(Eval("DisplayClientVisibility")) %>'> <%# Eval("DisplayClientName")%> </asp:Label><br /> <%--Text="<left>Client :</left>"--%> <%--Facility Name--%> <asp:Label runat="server" ID="lblDisplayFacilityName" Style="font-weight: normal; color: Black; font-size: 10px; word-wrap: break-word; width: 95px; float: left; float: left; text-align: left; float: left;" Visible='<%# Convert.ToBoolean(Eval("DisplayFacilityVisibility")) %>'> <%# Eval("DisplayFacilityname")%> </asp:Label><%--Text="<left>Facility :</left>"--%> <br /> <%--Resource Name--%> <asp:Label runat="server" ID="lblDisplayResourceName" Style="font-weight: normal; color: Black; font-size: 10px; word-wrap: break-word; width: 95px; text-align: left; float: left;" Visible='<%# Convert.ToBoolean(Eval("DisplayResourceVisibility")) %>'> <%# Eval("DisplayResourceName")%> </asp:Label><br /> <%--Text="<left>Resource :</left>" --%> <%--Resource Name--%> <asp:Label runat="server" ID="Label2" Style="font-weight: normal; width: 95px; color: Black; font-size: 10px; text-align: left; word-wrap: break-word; float: left;"><%-- Text="<left>Room :</left>"--%> <%# Eval("DisplayResourceName")%> </asp:Label><br /> <br /> <asp:LinkButton ID="linkButtonMore" Style="font-weight: bold; width: 95px; color: Black; font-size: 10px;" runat="server" Text="More"></asp:LinkButton> </div> </td> </tr> </table> </div> </appointmenttemplate> </telerik:RadScheduler> </div> <telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Width="420" Height="300" ToolTipZoneID="RadScheduler1" Animation="Resize" HideEvent="LeaveToolTip" Text="Loading..." RelativeTo="Mouse" OnAjaxUpdate="RadToolTipManager1_AjaxUpdate" OnClientBeforeShow="clientBeforeShow"> </telerik:RadToolTipManager> </div>