Пример #1
0
        private void AppearanceInlineGridAction_CustomizeControl(object sender, CustomizeControlEventArgs e)
        {
            ASPxGridViewCustomButtonInitializer initializer = e.Control as ASPxGridViewCustomButtonInitializer;

            if (initializer != null)
            {
                initializer.Styles.Style.ForeColor       = System.Drawing.Color.Red;
                initializer.Styles.Style.HorizontalAlign = System.Web.UI.WebControls.HorizontalAlign.Right;
                initializer.Styles.Style.Font.Underline  = false;
            }
        }
Пример #2
0
        private void CaptionInlineGridAction_CustomizeControl(object sender, CustomizeControlEventArgs e)
        {
            // Inline Grid Action
            ASPxGridViewCustomButtonInitializer initializer = e.Control as ASPxGridViewCustomButtonInitializer;

            if (initializer != null)
            {
                initializer.Text = string.Format("{0} - {1}", defaultCaption, ((CustomizeInlineGridActionControl)initializer.CurrentObject).Caption);
            }
            else
            {
                // Inside ActionContainerHolder
                SimpleActionMenuActionItem actionItem = e.Control as SimpleActionMenuActionItem;
                if (actionItem != null)
                {
                    menuItem = actionItem.MenuItem;
                }
            }
        }