Exemplo n.º 1
0
        /// <summary>
        /// Adds a new column on the left of the table containing a checkbox for each row.
        /// Adds an action link to the top of the table that acts on all rows that are checked.
        /// Each row must specify the UniqueIdentifier for its row setup. This will be passed back to the given action method.
        /// Adding multiple actions results in just one column of checkboxes.
        /// The checkbox column consumes 5% of the table width.
        /// The action method automatically executes in an EhModifyData method, so your implementation does not need to do this.
        /// </summary>
        public void AddSelectedRowsAction(string label, RowMethod action)
        {
            var postBack = PostBack.CreateFull(id: PostBack.GetCompositeId(PostBackIdBase, label));

            selectedRowDataModificationsToMethods.Add(postBack, action);
            selectedRowActionButtonsToAdd.Add(new PostBackButton(postBack, new TextActionControlStyle(label), usesSubmitBehavior: false));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Adds a new column on the left of the table containing a checkbox for each row.
        /// Adds an action link to the top of the table that acts on all rows that are checked.
        /// Each row must specify the UniqueIdentifier for its row setup. This will be passed back to the given action method.
        /// Adding multiple actions results in just one column of checkboxes.
        /// The checkbox column consumes 5% of the table width.
        /// The action method automatically executes in an EhModifyData method, so your implementation does not need to do this.
        /// </summary>
        public void AddSelectedRowsAction(string label, RowMethod action)
        {
            var postBack = PostBack.CreateFull(id: PostBack.GetCompositeId(PostBackIdBase, label));

            selectedRowDataModificationsToMethods.Add(postBack, action);
            selectedRowActionButtonsToAdd.Add(
                new EwfButton(new StandardButtonStyle(label, buttonSize: ButtonSize.ShrinkWrap), behavior: new PostBackBehavior(postBack: postBack)));
        }
Exemplo n.º 3
0
 /// <summary>
 /// Adds a new column on the left of the table containing a checkbox for each row.
 /// Use this method if you have an existing button (that might affect multiple tables) that you want to fire the action.
 /// Each row must specify the UniqueIdentifier for its row setup. This will be passed back to the given action method.
 /// Adding multiple actions results in just one column of checkboxes.
 /// The checkbox column consumes 5% of the table width.
 /// The action method automatically executes in an EhModifyData method, so your implementation does not need to do this.
 /// </summary>
 public void AddSelectedRowsAction(DataModification dataModification, RowMethod action)
 {
     selectedRowDataModificationsToMethods.Add(dataModification, action);
 }