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();
CheckListDemoOptions options = (CheckListDemoOptions)ViewData["Options"];
%>
<div class="vertComponentContainer" style="width:500px">
<%
Html.DevExpress().CheckBoxList(
settings => {
settings.Name = "checkBoxList1";
settings.Properties.ValueField = "ID";
settings.Properties.TextField = "Name";
settings.Properties.RepeatLayout = options.RepeatLayout;
settings.Properties.RepeatDirection = options.RepeatDirection;
settings.Properties.RepeatColumns = options.RepeatColumns;
}
)
.BindToXML(MapPath("~/App_Data/ProgLanguages.xml"), "//Language")
.Render();
%>
</div>
<div class="vertOptionsPanel">
<div>
<label for="RepeatLayout">Layout:</label>
<%= Html.DropDownList("RepeatLayout", CheckListDemoHelper.GetRepeatLayouts(), new { style = "width:100px" })%>
</div>
<div style="float: none;">
<label for="RepeatDirection">Direction:</label>
<%= Html.DropDownList("RepeatDirection", CheckListDemoHelper.GetRepeatDirections(), new { style = "width:100px" })%>
</div>
<div style="float: none;">
<label for="RepeatColumns">Repeat Columns:</label>
<%= Html.DropDownList("RepeatColumns", CheckListDemoHelper.GetRepeatColumns(), new { style = "width:100px" })%>
</div>
<input type="submit" value="Apply" />
</div>
<% Html.EndForm(); %>
</asp:Content>