using FastReport.Dialog; using System; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace FastReport.Web { public partial class WebReport : WebControl, INamingContainer { private void CheckBoxClick(CheckBoxControl cb, string data) { bool oldValue = cb.Checked; cb.Checked = data == "true"; cb.FilterData(); cb.OnClick(null); if (oldValue != cb.Checked) cb.OnCheckedChanged(EventArgs.Empty); } private string GetCheckBoxHtml(CheckBoxControl control) { string id = Prop.ControlID + control.Name; return string.Format("", // class "", // style GetCheckBoxStyle(control), // name control.Name, // value control.Text, // onclick GetEvent("onclick", control, string.Format("document.getElementById('{0}').checked", id)), // title id, control.Checked ? "checked" : "", control.Enabled ? "" : "disabled", control.Text, GetControlFont(control.Font) ); } private string GetCheckBoxStyle(CheckBoxControl control) { return GetStandardStyle(control); } } }