Example #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        this.pagePermissionDefault = new PermissionSet(Permission.CanEditOrg);

        enteringMode = FormView1.CurrentMode;
        Controls_v4_WSGeographyTreeDropDown.EmitScripts(this);
        Controls_v4_WSOrgTreeDropDown.EmitScripts(this);
        WSOrgTreeDropDownSelectForEdit.tree.SetAuthority(_authority, Permission.CanEditOrg);

        programmedStyleTag.InnerHtml =
            programmedStyleTag.InnerHtml
            .Replace("RadMultiPage1.ClientID", RadMultiPage1.ClientID)
            .Replace("RadTabStrip1.ClientID", RadTabStrip1.ClientID);

        WSOrgTreeDropDownSelectForEdit.tree.topSortCountryId = _currentUser.CountryId; //current users country at the top of the dropdown

        if (!IsPostBack)
        {
            FormView1.ChangeMode(FormViewMode.ReadOnly);
        }
        //if (Request.Browser.IsBrowser("Firefox"))
        //{
        //    RadAjaxManager1.EnableAJAX = false;
        //    ScriptManager.GetCurrent(this).EnablePartialRendering = false;
        //}
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            SetUIState(pageUIState.open);

            BuildTemplateDropdowns();
        }

        SetEditorToolbar();
        Controls_v4_WSOrgTreeDropDown.EmitScripts(this);
        (WSOrgTreeDropDown1).tree.SetAuthority(_authority, Permission.CanEditMailTemplates);
    }