Mini Kabibi Habibi
<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<asp:Content ID="indexContent" ContentPlaceHolderID="ContentHolder" runat="server">
<%
Html.BeginForm();
ChartShowLabelsDemoOptions options = (ChartShowLabelsDemoOptions)ViewData[ChartDemoHelper.OptionsKey];
%>
<div class="chartOptionsPanel" style="height:40px;">
<div style="padding-bottom: 4px;">
<label for="view">View Type:</label>
<%=Html.DropDownList("view", ChartDemoHelper.GetPointLineViews(), options.View)%>
</div>
<div>
<div style="float: left; vertical-align:baseline;">
<%=Html.CheckBox("showLabels", options.ShowLabels, new { style = "vertical-align: -2px; margin-left: 0px; padding-left: 0px;" })%>
<label class="checkBox" for="showLabels">Show Labels</label>
</div>
<input style="float: right;" type="submit" value="Apply"/>
</div>
</div>
<br/>
<%
switch (options.View) {
case DevExpress.XtraCharts.ViewType.Bubble:
Html.RenderPartial("PointLineViewsBubblePartial", Model);
break;
case DevExpress.XtraCharts.ViewType.ScatterLine:
Html.RenderPartial("PointLineViewsScatterLinePartial", Model);
break;
case DevExpress.XtraCharts.ViewType.StackedLine:
case DevExpress.XtraCharts.ViewType.StackedLine3D:
Html.RenderPartial("PointLineViewsStackedLinePartial", Model);
break;
case DevExpress.XtraCharts.ViewType.FullStackedLine:
case DevExpress.XtraCharts.ViewType.FullStackedLine3D:
Html.RenderPartial("PointLineViewsFullStackedLinePartial", Model);
break;
default:
Html.RenderPartial("PointLineViewsPartial", Model);
break;
}
Html.EndForm();
%>
</asp:Content>