Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1088305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:03:17+00:00 2026-05-16T23:03:17+00:00

i have a button which has a Command property . However , i want

  • 0

i have a button which has a Command property .
However , i want that button to be disable (user can’t click on it) until another button has been clicked. For example, user can only click on the Save button after the New button has been clicked

So i do the following

<telerik:RadButton Content="Save" Height="22" HorizontalAlignment="Right" Margin="0,0,72,25" Name="saveRBtn" VerticalAlignment="Bottom" Width="43" Grid.Column="5" Grid.Row="4" 
                       IsEnabled="False"
                       Command="{Binding Path=LoadCommand, ElementName=documentLineDomainDataSource}" 
                       Click="saveRBtn_Click"/>

However, it seems like that the button won’t be disabled with the setting IsEnabled = False if i have the Command property
when i take the command property out the code then the Setting IsEnabled = false works fine

not sure why the IsEnabled setting won’t work if the Command property presents.

plz help me

thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T23:03:17+00:00Added an answer on May 16, 2026 at 11:03 pm

    A button can work with or without a Command. You use the Click event and the IsEnabled property if you don’t use the Command. They have priority over the Command as they are more “direct” (and were in Silverlight before it supported the Command property).

    Normally, if you use a Command, you don’t set IsEnabled and don’t handle the Click event. The button will be enabled if the command can be executed (CanExecute property) and it will call the Execute method of the button.

    To answer your question, you should remove the setting of IsEnabled and the click handler and do everything through the Command object.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to click on the button which has id . But this id
I have a dynamic tableview which has a prototype cell with a button that,
We have a button that fires a command which goes to the server to
I have a button on a toolbar that has its command set to MyControl.Print
I have a button control that has its Content property bound to a boolean
I use ASP.NET and have a Button and a CustomValidator, which has to validate
I have a activity which has a button and 2 autocomplete widget. for the
I have a control which has a button on it. All the button does
I have a list view item which has a button and displays properties on
I have made an iPhone App which has a loginwithFacebook button , the login

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.