Skip Navigation

  1. Tour
  2. Products & Pricing
    1. QuantumCMS Enterprise
    2. QuantumCMS Hosted
    3. QuantumCMS Lite
      1. Template A
      2. Template B
      3. Template C
    4. Industry Solutions
      1. Legal / Law Firms
  3. Services
    1. Web Design
    2. SEO & Analytics
    3. Technical Support
  4. Examples
    1. Legal
    2. Healthcare
    3. Not-for-profit
    4. Industrial
    5. Other Industries
  5. Support
    1. Contact Us
    2. Community
    3. Frequently Asked Questions
    4. Tutorials
      1. Customizing the Dashboard
      2. Using the Navigation Tree
      3. Page Details
      4. Content Editor Guide
      5. Tips on Creating Effective Content
      6. Adding a Document Page
      7. 12 more items...
    5. Training Sessions
    6. Upgrades
      1. Obtaining Upgrades
      2. Installing Upgrades
  6. News
    1. Press
      1. Archive
    2. Company Announcements
      1. Growth Continues For Local High-Tech Sector Company
      2. Algonquin to be Official QR Code Sponsor of 2012 LMA Annual Conference
      3. Algonquin to Sponsor LMA Virginias 2011 Continuing Marketing Education Conference
      4. Algonquin Studios Announces Opening of New York City Office
      5. Algonquin Studios Announces Sponsorship of the New York State Academy of Trial Lawyers
      6. Tom Garigen Joins Algonquin Studios as Sales Consultant
    3. Clients
      1. Case Studies
      2. Testimonials
  7. Request Information

AS Web Forms : Component Reference : ASDataEditor Class : Templates : Menu : Disable Menu Buttons

Disable Menu Buttons

Sometimes, you may want to disable a button in the menu when you are on the edit screen, or enable a button when you are on the search screen. This is done my setting attributes on the button in the DataEditor's Menu Item Template. This is done in the ASPX / ASCX page.

In each button's HTML tag, you may add an attribute called "AlwaysEnable" to true to always have the button enabled regardless of the screen. Legitimate values are:

AlwaysEnable="True"

There is also an attribute called "ManualEnable" which may be set to true or false.

Both attributes may also be set programmatically using the standard ASP.NET attribute syntax. For Example:

CType(Mypage.helper.GetControl(ctlASDataEditor,"cmdButton"), System.Web.UI.HtmlControls.HtmlInputButton).Attributes("ManualEnable").Disabled = True 

OR

CType(Mypage.helper.GetControl(ctlASDataEditor,"cmdButton"), System.Web.UI.HtmlControls.HtmlInputButton).Attributes("ManualEnable").Disabled = False


Note that to use the syntax above, you must have put a default value in the attribute in the ASCX. Otherwise, you will need to use the Attributes.Add method to set it up first.