protected void listBox_CustomJSProperties(object sender, DevExpress.Web.CustomJSPropertiesEventArgs e) { var list = sender as ASPxListBox; var container = list.NamingContainer as TemplateContainerBase; var dropDown = container.NamingContainer.NamingContainer as ASPxDropDownEdit; dropDown.ClientInstanceName = dropDown.UniqueID; e.Properties["cp_dropDownClientName"] = dropDown.ClientInstanceName; }
protected void CustomerRatingTrackBar_CustomJSProperties(object sender, DevExpress.Web.CustomJSPropertiesEventArgs e) { e.Properties.Add("cpRightLabelID", "CustomerRatingTrackbarLabel_R"); }
protected void NightyRateTrackBar_CustomJSProperties(object sender, DevExpress.Web.CustomJSPropertiesEventArgs e) { e.Properties.Add("cpLeftLabelID", "NightyRateTrackBarLabel_L"); e.Properties.Add("cpRightLabelID", "NightyRateTrackBarLabel_R"); e.Properties.Add("cpLabelPrefix", "$"); }
protected void PageViewerPopup_CustomJSProperties(object sender, DevExpress.Web.CustomJSPropertiesEventArgs e) { var reportTypes = Enum.GetValues(typeof(ReportType)).OfType <ReportType>(); e.Properties["cpReportDisplayNames"] = reportTypes.ToDictionary(r => r.ToString(), r => HicomReportUtil.GetReportDisplayName(r)); }