This is a migrated thread and some comments may be shown as answers.

RadToolBar Item Command on Radgrid. How do you hide some buttons

1 Answer 176 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Joel
Top achievements
Rank 1
Joel asked on 02 Apr 2012, 12:05 AM
Hi Guys, 

I am currently using the Radtoolbar to launch Item Commands from Radgrids.  Everything works great, opening Radwindows to load new ASPX pages etc.  

I have now come across a situation where some of our customers shouldn't see some of the buttons.  In our system we use a DB table called Parameters set with Values like YES or NO.  What I am trying to do, is from Javascript, check to see if a buttons parameter is set to YES or NO and then display or not display the button.

In VB this is quite easy, however with the Radtoolbar using Javascript Im unsure how I can implement similar functionality.  

Cheers
Joel

1 Answer, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 04 Apr 2012, 03:42 PM
Hi Joel,

I would suggest that you use custom attributes as described in the following help article - Custom Attributes - and implement the desired logic on the client side.

Kind regards,
Kate
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
ToolBar
Asked by
Joel
Top achievements
Rank 1
Answers by
Kate
Telerik team
Share this question
or