Пример #1
0
        protected void DelClick_Event(object sender, DirectEventArgs e)
        {
            TasksGrid grid = Ext.Net.Utilities.ControlUtils.FindControls <TasksGrid>(this.Page)[0];

            int[] ids = JSON.Deserialize <int[]>(e.ExtraParams["ids"]);
            grid.DeleteTasks(ids);
        }
Пример #2
0
        protected void MarkClick_Event(object sender, DirectEventArgs e)
        {
            TasksGrid grid = Ext.Net.Utilities.ControlUtils.FindControls <TasksGrid>(this.Page)[0];

            int[] ids        = JSON.Deserialize <int[]>(e.ExtraParams["ids"]);
            int   categoryID = int.Parse(e.ExtraParams["categoryID"]);

            grid.ToggleStatus(ids, true, categoryID, e.ExtraParams["filter"]);
        }