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;
    }
示例#2
0
 protected void CustomerRatingTrackBar_CustomJSProperties(object sender, DevExpress.Web.CustomJSPropertiesEventArgs e)
 {
     e.Properties.Add("cpRightLabelID", "CustomerRatingTrackbarLabel_R");
 }
示例#3
0
 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", "$");
 }
示例#4
0
        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));
        }