Hidden Columns

2 posts, 0 answers
  1. Julian
    Julian avatar
    5 posts
    Member since:
    Oct 2017

    Posted 12 Aug 2019 Link to this post

    Hi ,


    I`ve had a look through the forum but could not find the answer I need. All I need to do is hide a column using .Hidden but for it to have 2 conditions. This is what I have already 

    columns.Command(command => command.Custom("More Information").Click("moreInfo")).Width(180).Hidden(!ViewBag.IsAuthorized );


    What I need is something 


    columns.Command(command => command.Custom("More Information").Click("moreInfo")).Width(180).Hidden(!ViewBag.IsAuthorized  or blabla = something);

  2. Viktor Tachev
    Viktor Tachev avatar
    2497 posts

    Posted 14 Aug 2019 Link to this post

    Hi Julian,


    The Hidden option for the columns accepts a single boolean value that controls whether the column will be displayed. However, if you would like to hide specific commands based on a more complex condition you can use the Visible option for a given command. The property accepts a JavaScript handler. The returned value from the function will determine if the command will be displayed.

    Check out the article below that describes the functionality in more detail:



    Regards, Viktor Tachev
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top