protected void trackBar1_CustomJSProperties(object sender, CustomJSPropertiesEventArgs e)
    {
        ASPxTrackBar bar = sender as ASPxTrackBar;

        e.Properties["cpMinValue"] = bar.MinValue;
        e.Properties["cpMaxValue"] = bar.MaxValue;
    }
Exemple #2
0
    protected void cbPanel_CustomJSProperties(object sender,
                                              CustomJSPropertiesEventArgs e)
    {
        string current_status = (Session["ndarsaveresults"] != null) ? Session["ndarsaveresults"].ToString() : "";

        e.Properties["cpResults"] = current_status;
    }
Exemple #3
0
 private void dashboard_CustomJSProperties(object sender, CustomJSPropertiesEventArgs e)
 {
     if (CustomJSProperties != null)
     {
         Application.Update(this, () =>
         {
             CustomJSProperties(sender, e);
         });
     }
 }
Exemple #4
0
    protected void galleryDV_CustomJSProperties(object sender, CustomJSPropertiesEventArgs e)
    {
        var itemDetails = new Dictionary <string, object>();

        foreach (DataViewItem item in galleryDV.Items.GetVisibleItems())
        {
            var key = GetImageID(GetItemValue(item, "ID"));
            itemDetails[key] = GetItemDetail(item);
        }
        e.Properties["cpItemDetails"] = itemDetails;
    }
Exemple #5
0
        protected void AdsTabControl_CustomJSProperties(object sender, CustomJSPropertiesEventArgs e)
        {
            Color[] co = new Color[] { Color.FromArgb(255, 0, 0), Color.FromArgb(205, 0, 0), Color.FromArgb(155, 0, 0), Color.FromArgb(105, 0, 0), Color.FromArgb(55, 0, 0) };

            var pageIDHash = new Hashtable();

            foreach (Tab tab in AdsTabControl.Tabs)
            {
                pageIDHash[tab.Name] = GetAdsPageID(DataBinder.Eval(tab.DataItem, "ID"));
                AdsTabControl.Tabs[tab.Index].TabStyle.BackColor = co[tab.Index];
            }
            e.Properties["cpPageIDHash"] = pageIDHash;
        }
Exemple #6
0
        protected void gv1_CustomJSProperties(object sender, CustomJSPropertiesEventArgs e)
        {
            ASPxGridView gv_effect        = sender as ASPxGridView;
            Hashtable    selectedRowTable = new Hashtable();

            for (int i = 0; i < gv_effect.VisibleRowCount; i++)
            {
                DataRow dr = gv_effect.GetDataRow(i);
                if (!selectedRowTable.ContainsKey(dr["OBID"].ToString()))
                {
                    selectedRowTable.Add(dr["OBID"].ToString(), string.Format("{0} {1}", dr["TagNo"].ToString(), dr["Location"].ToString()));
                }
            }
            e.Properties["cpgetTokenname"] = selectedRowTable;
        }
Exemple #7
0
    protected void he_CustomJSProperties(object sender, CustomJSPropertiesEventArgs e)
    {
        if (!String.IsNullOrEmpty(fileName))
        {
            string[] file = Directory.GetFiles(Server.MapPath("~/"), String.Format("{0}*", fileName));
            if (file.Length > 0)
            {
                oldFile = file[0];
            }

            // In your application use a unique value for "pattern"
            pattern = String.Format("image{0}", ext);
            e.Properties.Add("cpSrc", Path.GetFileName(oldFile));
            e.Properties.Add("cpPattern", pattern);
        }
    }
    protected void cmb_Type_CustomJSProperties(object sender, CustomJSPropertiesEventArgs e)
    {
        ASPxGridView grid = sender as ASPxGridView;

        if (cmb_Type.Value != null)
        {
            if (SafeValue.SafeString(cmb_Type.Value) != "All")
            {
                dsJobDet.FilterExpression = "CargoStatus='" + SafeValue.SafeString(cmb_Type.Value) + "'";
            }
            else
            {
                dsJobDet.FilterExpression = "1=1";
            }
        }
    }
        void updatePanel_CustomJSProperties(object sender, CustomJSPropertiesEventArgs e)
        {
            Page page         = WebWindow.CurrentRequestPage;
            var  updatePanels = new List <XafUpdatePanel>();

            FindUpdatePanels(page, updatePanels);
            var controlNames = new StringBuilder();

            foreach (XafUpdatePanel panel in updatePanels)
            {
                if (!IsParentOf(panel, (Control)sender))
                {
                    controlNames.Append(panel.ClientID);
                    controlNames.Append(";");
                    e.Properties["cp" + panel.ClientID] = RenderUtils.GetControlChildrenRenderResult(panel);
                }
            }

            e.Properties["cpControlsToUpdate"] = controlNames.ToString();
        }
Exemple #10
0
 protected void PivotGrid_CustomJsProperties(object sender, CustomJSPropertiesEventArgs e)
 {
     e.Properties.Add("cpGps", FncGenerarDataGps());
 }
Exemple #11
0
 protected void ASPxScheduler1_CustomJSProperties(object sender, CustomJSPropertiesEventArgs e)
 {
     e.Properties.Add("cpAppointmentFormOpened", appointmentFormOpened);
 }
 void ASPxScheduler1_CustomJSProperties(object sender, CustomJSPropertiesEventArgs e)
 {
     e.Properties.Add("cpWarning", ResourcesAvailabilities.WarningMessage);
 }
 protected void subMenu_JSProperties(object sender, CustomJSPropertiesEventArgs e)
 {
     e.Properties["cpItems"] = items.ToArray();
 }
 // ShowPath for Custom Filtering
 protected void fileManager_CustomJSProperties(object sender, CustomJSPropertiesEventArgs e)
 {
     e.Properties["cpHasFilter"] = !string.IsNullOrEmpty(fileManager.FileListCustomFilter) ||
                                   !string.IsNullOrEmpty(fileManager.FilterBoxText);
 }
        void updatePanel_CustomJSProperties(object sender, CustomJSPropertiesEventArgs e) {

            Page page = WebWindow.CurrentRequestPage;
            var updatePanels = new List<XafUpdatePanel>();
            FindUpdatePanels(page, updatePanels);
            var controlNames = new StringBuilder();
            foreach (XafUpdatePanel panel in updatePanels) {
                if (!IsParentOf(panel, (Control)sender)) {
                    controlNames.Append(panel.ClientID);
                    controlNames.Append(";");
                    e.Properties["cp" + panel.ClientID] = RenderUtils.GetControlChildrenRenderResult(panel);
                }
            }

            e.Properties["cpControlsToUpdate"] = controlNames.ToString();

        }
Exemple #16
0
 protected void gridLookup_CustomJSProperties(object sender, CustomJSPropertiesEventArgs e)
 {
     SpecifyJSProperties(sender as ASPxGridLookup);
 }
Exemple #17
0
 protected void rpFilmCollection_CustomJSProperties(object sender, CustomJSPropertiesEventArgs e)
 {
     e.Properties["cpPageIndex"] = this.MultiView.ActiveViewIndex;
     e.Properties["cpPageCount"] = this.MultiView.Views.Count;
 }
 protected void DownloadButton_CustomJSProperties(object sender, CustomJSPropertiesEventArgs e)
 {
     e.Properties["cpTrialUrl"] = AssemblyInfo.DXLinkTrial;
 }
 private void DashboardDesigner_CustomJSProperties(object sender, CustomJSPropertiesEventArgs e)
 {
     e.Properties["cpDashboardHasParameters"] = _dashboardHasParameters;
 }
Exemple #20
0
        protected void GridEffectList_CustomJSProperties(object sender, CustomJSPropertiesEventArgs e)
        {
            ASPxGridView gv_effect = sender as ASPxGridView;
            Hashtable selectedRowTable = new Hashtable();
            for (int i = 0; i < gv_effect.VisibleRowCount; i++)
            {
                DataRow dr = gv_effect.GetDataRow(i);
                if(!selectedRowTable.ContainsKey(dr["OBID"].ToString()))
                    selectedRowTable.Add(dr["OBID"].ToString(), string.Format("{0} {1}", dr["TagNo"].ToString(), dr["Location"].ToString()));
            }

            e.Properties["cpgetTokenname"] = selectedRowTable;
        }
Exemple #21
0
 protected void loadingPanelDialog_OnCustomJSProperties(object sender, CustomJSPropertiesEventArgs e)
 {
     e.Properties.Add("cpCurrentView", CurrentView);
 }
        protected void callbackPanel_CustomJSProperties(object sender, CustomJSPropertiesEventArgs e)
        {
            JavaScriptSerializer serializer = new JavaScriptSerializer();

            e.Properties["cpModel"] = serializer.Serialize(WizardModel);
        }
Exemple #23
0
 protected void EditMessagePopup_CustomJSProperties(object sender, CustomJSPropertiesEventArgs e)
 {
     e.Properties["cpEmployeeEditMessageTemplate"] = EmployeeEditMessageTemplate;
     e.Properties["cpEditMessageTemplate"]         = EditMessageTemplate;
 }
 private void Pass_CustomJSProperties(object sender, CustomJSPropertiesEventArgs e)
 {
     e.Properties["cp_RequestMethod"] = RequestMethod;
 }
 private void ASPxScheduler1_CustomJSProperties(object sender, CustomJSPropertiesEventArgs e)
 {
     e.Properties.Add("cpWarning", "The currently selected appointment cannot be modified because of its Price value.");
 }
Exemple #26
0
    protected void MailTree_CustomJSProperties(object sender, CustomJSPropertiesEventArgs e)
    {
        MessageBL bl = new MessageBL();

        e.Properties["cpUnreadMessagesHash"] = GetMessagesKeyMap(bl.UnreadMessages(""));
    }
Exemple #27
0
 protected void ASPxPivotGrid1_CustomJsProperties(object sender, CustomJSPropertiesEventArgs e)
 {
     e.Properties.Add("cpCountrySales", GetCountrySales());
 }
Exemple #28
0
 protected void ContactPhotoImage_CustomJsProperties(object sender, CustomJSPropertiesEventArgs e)
 {
     e.Properties["cpEmptyImageUrl"] = Utils.GetContactPhotoUrl(string.Empty);
 }