Exemple #1
0
        /// <summary>
        /// Handles the LoadComplete event of the Page control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        void Page_LoadComplete(object sender, EventArgs e)
        {
            if (String.Compare(Request.Form["__EVENTTARGET"], CommandManager.GetCurrent(this.Page).ID, false) == 0)
            {
                object objArgs = Request.Form["__EVENTARGUMENT"];
                if (objArgs != null)
                {
                    Dictionary <string, object> cmd = new System.Web.Script.Serialization.JavaScriptSerializer().DeserializeObject(objArgs.ToString()) as Dictionary <string, object>;
                    if (cmd != null && cmd.Count > 1)
                    {
                        object cmdName = cmd[_CommandName];
                        if (String.Compare((string)cmdName, _MoveDialogCommand, true) == 0)
                        {
                            // process move command
                            Dictionary <string, object> args = cmd[_CommandArguments] as Dictionary <string, object>;
                            if (args != null)
                            {
                                ProcessMoveCommand(args);
                                ManagementHelper.SetBindGridFlag(MyListView.CurrentListView.ID);
                            }
                        }
                    }
                }
            }

            if (IsPostBack &&
                (ManagementHelper.GetBindGridFlag(MyListView.CurrentListView.ID) || String.Compare(Request.Form["__EVENTTARGET"], CommandManager.GetCurrent(this.Page).ID, false) == 0))
            {
                LoadDataAndDataBind();
                DataBind();
                MyListView.MainUpdatePanel.Update();
            }
        }
Exemple #2
0
 /// <summary>
 /// Handles the LoadComplete event of the Page control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 void Page_LoadComplete(object sender, EventArgs e)
 {
     if (ManagementHelper.GetBindGridFlag(MyListView.CurrentListView.ID) || String.Compare(Request.Form["__EVENTTARGET"], CommandManager.GetCurrent(this.Page).ID, false) == 0)
     {
         LoadDataAndDataBind(ProfileContext.Current.Profile.PageSettings.GetSettingString(SortExpressionSettingKey));                 //MyListView.CurrentListView.SortExpression);
         MyListView.MainUpdatePanel.Update();
     }
 }
Exemple #3
0
 /// <summary>
 /// Handles the LoadComplete event of the Page control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 void Page_LoadComplete(object sender, EventArgs e)
 {
     if (IsPostBack && ManagementHelper.GetBindGridFlag(MyListView.CurrentListView.ID))
     {
         LoadDataAndDataBind();
         MyListView.MainUpdatePanel.Update();
     }
 }
 /// <summary>
 /// Handles the LoadComplete event of the Page control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 void Page_LoadComplete(object sender, EventArgs e)
 {
     if ((IsPostBack && ManagementHelper.GetBindGridFlag(MyListView.CurrentListView.ID)) || String.Compare(Request.Form["__EVENTTARGET"], CommandManager.GetCurrent(this.Page).ID, false) == 0)
     {
         LoadDataAndDataBind(MyListView.CurrentListView.SortExpression);
         MyListView.MainUpdatePanel.Update();
     }
 }
Exemple #5
0
 private void Page_LoadComplete(object sender, EventArgs e)
 {
     if (!this.IsPostBack || !ManagementHelper.GetBindGridFlag(this.MyListView.CurrentListView.ID))
     {
         return;
     }
     this._StartRowIndex = 0;
     this.InitDataSource(this._StartRowIndex, this.GetMaximumRows(), true, this.MyListView.CurrentListView.SortExpression);
     this.DataBind();
     this.MyListView.MainUpdatePanel.Update();
 }
Exemple #6
0
        /// <summary>
        /// Handles the LoadComplete event of the Page control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        void Page_LoadComplete(object sender, EventArgs e)
        {
            if (IsPostBack && ManagementHelper.GetBindGridFlag(MyListView.CurrentListView.ID))
            {
                // reset start index
                _StartRowIndex = 0;

                InitDataSource(_StartRowIndex, GetMaximumRows(), true, MyListView.CurrentListView.SortExpression);
                DataBind();
                MyListView.MainUpdatePanel.Update();
            }
        }
Exemple #7
0
        /// <summary>
        /// Handles the LoadComplete event of the Page control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        void Page_LoadComplete(object sender, EventArgs e)
        {
            if (String.Compare(Request.Form["__EVENTTARGET"], CommandManager.GetCurrent(this.Page).ID, false) == 0)
            {
                object objArgs = Request.Form["__EVENTARGUMENT"];
                if (objArgs != null)
                {
                    Dictionary <string, object> cmd = new System.Web.Script.Serialization.JavaScriptSerializer().DeserializeObject(objArgs.ToString()) as Dictionary <string, object>;
                    if (cmd != null && cmd.Count > 1)
                    {
                        object cmdName = cmd[_CommandName];
                        if (String.Compare((string)cmdName, _MoveCopyDialogCommand, true) == 0)
                        {
                            // reset start index
                            _StartRowIndex = 0;

                            // process move/copy command
                            Dictionary <string, object> args = cmd[_CommandArguments] as Dictionary <string, object>;
                            if (args != null)
                            {
                                ProcessMoveCopyCommand(args);
                                ManagementHelper.SetBindGridFlag(MyListView2.CurrentListView.ID);
                            }
                        }
                    }
                }
            }

            if (ManagementHelper.GetBindGridFlag(MyListView2.CurrentListView.ID))
            {
                // reset start index
                _StartRowIndex = 0;

                InitDataSource(_StartRowIndex, GetMaximumRows(), true, MyListView2.CurrentListView.SortExpression);
                DataBind();
                MyListView2.MainUpdatePanel.Update();
            }
        }