enable button

Posted on 2011-10-04
Last Modified: 2012-05-12
I have RadToolbar  has button Reply and set that to enabled false.. than I have RadGrid that  if user doesnt click the any row from the grid that Reply button should be disable , if they clicked row, that time should be can I do that? I have Radgrid row click event and tried getting the value of reply by using this, doesnt work..

RadToolBarButton btn = (RadToolBarButton)RadToolBar1.FindItemByValue("reply");
btn.Enabled = true;    
Question by:1jaws
    LVL 12

    Accepted Solution


    Author Comment

    Error      4      'Telerik.Web.UI.RadToolBarItemCollection' does not contain a definition for 'GetButtonByCommandName' and no extension method 'GetButtonByCommandName' accepting a first argument of type 'Telerik.Web.UI.RadToolBarItemCollection' could be found (are you missing a using directive or an assembly reference?)       

    got that error...
    LVL 51

    Assisted Solution

    RadToolBar1.Items[n].Enabled = false;

    where n=0,1,2...

    Author Closing Comment

    Thanks both for replying.. but I got the work around for this question...and solved different way...

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now