get { return (RepeatLayout) ViewState.GetInt ("RepeatLayout", (int) RepeatLayout.Table); }
set {
bool outOfRange;
-#if NET_4_0
outOfRange = value < RepeatLayout.Table || value > RepeatLayout.OrderedList;
-#else
- outOfRange = value < RepeatLayout.Table || value > RepeatLayout.Flow;
-#endif
if (outOfRange)
throw new ArgumentOutOfRangeException ("value");
ViewState ["RepeatLayout"] = value;
check_box.Attributes.Clear ();
if (item.HasAttributes)
check_box.Attributes.CopyFrom (item.Attributes);
-#if NET_4_0
if (!RenderingCompatibilityLessThan40) {
var attrs = check_box.InputAttributes;
attrs.Clear ();
attrs.Add ("value", item.Value);
}
-#endif
check_box.RenderControl (writer);
}
RenderItem (itemType, repeatIndex, repeatInfo, writer);
}
- protected internal override void VerifyMultiSelect()
+ internal override bool MultiSelectOk ()
{
- //by default the ListControl will throw an exception in this method,
- //therefor we should override the method if the class is supporting
- //MultiSelect option.
+ return true;
}
}
}