'\\'public RecurrenceState RecurrenceState { get { return recurState; } set { recurState = value; } public void CopyInfo(Appointment source) { subject = source.Subject; start = source.Start; end = source.End; ------>recurState = source.RecurrenceState; <------------Here recurData = source.RecurrenceRule; if (source.RecurrenceParentID != null) recurParentID = source.RecurrenceParentID.ToString(); Resource r = source.Resources.GetResourceByType("Room"); if (r != null) room = (int) r.Key; radcalStartDate.SelectedDate = oSurvey.StartDate;
radcalEndDate.SelectedDate = oSurvey.EndDate;
<telerik:RadGrid runat="server" ID="RadGrid1" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" Height="100%" OnDataBound="RadGrid1_DataBound" OnItemCommand="RadGrid1_ItemCommand" OnItemCreated="RadGrid1_ItemCreated" OnItemDataBound="RadGrid1_ItemDataBound" OnNeedDataSource="RadGrid1_NeedDataSource" OnPreRender="RadGrid1_PreRender" PageSize="20" ShowFooter="True" ShowStatusBar="True" Width="100%" > <ClientSettings EnableRowHoverStyle="true"> <Resizing AllowColumnResize="false" ClipCellContentOnResize="true" EnableRealTimeResize="true" /> <Selecting AllowRowSelect="true" /> <Scrolling AllowScroll="true" UseStaticHeaders="true" /> </ClientSettings> <MasterTableView AllowPaging="true" TableLayout="Fixed"> <Columns> ... </Columns> </MasterTableView> <PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" /> </telerik:RadGrid> I just want one bar.. This one bar will contain 2 colors.. One color for 'Disbursed' and one color for 'Remaining'.. I have these 2 values as doubles... so if the values are 200/50 then one color of the bar will cover 25% and the other will cover 75%
What am I missing? As you see I have been poking in the dark (originally it was a datatable but since its just 2 numbers I got them... and now not sure what to do with them.
double dDisbursed = Convert.ToDouble(_grantService.GetFinacialDashboardTotal(234).Rows[0][2].ToString());
double dRemaining = Convert.ToDouble(_grantService.GetFinacialDashboardTotal(234).Rows[0][1].ToString());
// RadChartLOCCS.PlotArea.XAxis.DataLabelsColumn = "GrantID";
// RadChartLOCCS.Series[0].DataLabelsColumn = "AwardAmount";
// RadChartLOCCS.Series[0].DataXColumn = "AwardAmount";
// RadChartLOCCS.Series[0].DataXColumn2 = "LOCCSDisbursed";
//RadChartLOCCS.Series[0].DataYColumn = "AwardAmount";
RadChartLOCCS.DataBind();
<telerik:RadChart ID="RadChartLOCCS" runat="server" DefaultType="StackedBar100" SeriesOrientation="Horizontal">
<Series>
<telerik:ChartSeries Name="SeriesLOCCS" Type="StackedBar100">
</telerik:ChartSeries>
</Series>
<ChartTitle>
<TextBlock Text="LOCCS Budget">
</TextBlock>
</ChartTitle>
</telerik:RadChart>