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

2 posts, 0 answers
  1. Joel
    Joel avatar
    2 posts
    Member since:
    Aug 2010

    Posted 01 Apr 2012 Link to this post

    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.  

  2. Kate
    Kate avatar
    1898 posts

    Posted 04 Apr 2012 Link to this post

    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,
    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.
Back to Top