How to Hide Toolbar button based on a Condition?

3 posts, 0 answers
  1. Akhilesh
    Akhilesh avatar
    1 posts
    Member since:
    Jun 2011

    Posted 13 Mar 2013 Link to this post

    I have created a single page application with Kendo Grid.  and users have different roles. I need to Hide and show buttons on  User Role Type.
  2. Dimiter Madjarov
    Dimiter Madjarov avatar
    2312 posts

    Posted 14 Mar 2013 Link to this post

    Hello Akhilesh,

    This is a quote from my answer in the support thread:

    You could use a boolean in the Grid initialization to indicate whether the buttons should be shown or not.

    .ToolBar(toolbar => {
        if (userCanEdit)


    Kind regards,
    Dimiter Madjarov
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Chrys
    Chrys avatar
    45 posts
    Member since:
    Feb 2013

    Posted 15 Aug 2013 Link to this post

    Feel so dumb that I didn't try this.
Back to Top