using FastReport.Dialog; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace FastReport.Web { public partial class WebReport : WebControl, INamingContainer { private void RadioButtonClick(RadioButtonControl rb, string data) { bool oldValue = rb.Checked; rb.Checked = data == "true"; rb.FilterData(); if (oldValue != rb.Checked) rb.OnClick(null); } private string GetRadioButtonHtml(RadioButtonControl control) { string id = Prop.ControlID + control.Name; return string.Format("", // class "", // style GetRadioButtonStyle(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 GetRadioButtonStyle(RadioButtonControl control) { return GetStandardStyle(control); } } }