Permalink
Browse files

added div around check box list and radio button list

  • Loading branch information...
1 parent 21a6a5f commit d3236446279146c2b76e4ba72b1e62366e3efe53 @shashankshetty shashankshetty committed Jan 30, 2014
Showing with 4 additions and 1 deletion.
  1. +2 −1 src/FluentWebControls/CheckBoxListData.cs
  2. +2 −0 src/FluentWebControls/RadioButtonListData.cs
@@ -10,7 +10,6 @@
using System.Collections.Generic;
using System.Linq;
-using System.Runtime.InteropServices.WindowsRuntime;
using System.Text;
using FluentWebControls.Extensions;
@@ -48,6 +47,7 @@ public override string ToString()
var idPrefix = ((IWebControl)this).IdPrefix;
var namePrefix = ((IWebControl)this).NamePrefix;
var index = 0;
+ sb.Append("<div class='checkBoxList'>");
foreach (var item in _items)
{
var isChecked = SelectedValues.Any(value => item.Value != null && item.Value.Equals(value));
@@ -65,6 +65,7 @@ public override string ToString()
sb.Append("</div>");
index++;
}
+ sb.Append("</div>");
return sb.ToString();
}
}
@@ -45,6 +45,7 @@ public override string ToString()
var id = ((IWebControl)this).Id;
var idPrefix = ((IWebControl)this).IdPrefix;
var namePrefix = ((IWebControl)this).NamePrefix;
+ sb.Append("<div class='radioButtonList'>");
foreach (var item in _items)
{
var isChecked = SelectedValue == item.Value;
@@ -68,6 +69,7 @@ public override string ToString()
sb.Append("</div>");
}
}
+ sb.Append("</div>");
return sb.ToString();
}
}

0 comments on commit d323644

Please sign in to comment.