• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 433
  • Last Modified:

enable button

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 enabled..how 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;    
0
1jaws
Asked:
1jaws
  • 2
2 Solutions
 
jagssiduralaCommented:
0
 
1jawsAuthor Commented:
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...
0
 
HainKurtSr. System AnalystCommented:
RadToolBar1.Items[n].Enabled = false;

where n=0,1,2...
0
 
1jawsAuthor Commented:
Thanks both for replying.. but I got the work around for this question...and solved different way...
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now