Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6474973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:39:01+00:00 2026-05-25T06:39:01+00:00

I use Telerik Extensions for MVC. On one page I use a grid to

  • 0

I use Telerik Extensions for MVC. On one page I use a grid to display status messages. I want to show edit buttons for all status messages that have a positive status_id.

I have previously done this using a server bound grid and CellAction. However I am trying to change it into an Ajax bound grid, but I cannot figure out how to hide the buttons for specific rows then.

Is there, perhaps, a way to reference a specific cell from JavaScript, and hide it that way?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T06:39:01+00:00Added an answer on May 25, 2026 at 6:39 am

    I realize this question was posted some time ago but I am hoping my answer will prove useful to others.

    In your data model pass a field. In this case it is “RemoveDelete” and since it is used expressly to remove the Delete button based on a predetermined condition it is set to be hidden in the grid. If data displayed in your grid already contains the condition you want to examine then you don’t have to do this.

    In the Grid…

    .ClientEvents(events => events.OnRowDataBound("onRowDataBound"))
    .Columns(columns => {
      columns.Bound(c => c.ColumnName).Attributes().Etc();
      columns.Bound(c => c.ColumnName).Attributes().Etc();
      columns.Command(commands => {
        commands.Edit().ButtonType(ButtonType);
        commands.Delete().ButtonType(ButtonType);
      });
      columns.Bound(c => c.RemoveDelete).Hidden(true);
    })
    

    the script…

    <script type="text/javascript">
      function onRowDataBound(e) {
        if (e.dataItem.RemoveDelete > 0) {
          $(e.row).find('a.t-grid-delete').remove(); //remove Delete button
        }
      }
    </script>
    

    to remove the Edit button…

    $(e.row).find('a.t-grid-edit').remove();
    

    to hide the last column use

    $(e.row).find('td.t-last a.t-grid-action').hide();
    

    With all that being said, this allows you to predetermine what buttons you want displayed on a row by row basis.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use telerik mvc grid and pop up edit template. But I've no idea
Hy, In my app I use Telerik extensions for MVC Grid control: Telerik Grid
I'm trying to use Telerik MVC Grid for an application which requires lots of
I am using Telerik MVC Grid, with ajax binding and I use grid editing
I use telerik grid with Ajax batch editing for MVC – works just perfect.
I'm using Telerik's Grid control from the MVC Extensions. I have it set up
I want to use the telerik editor in a mvc 3 application I am
I use telerik tabstrip in my mvc 3 application. I have a table inside
I have been using telerik extensions for an asp.net mvc project, more specifically the
I am trying to use Telerik MVC extension with jQGrid in a ASP.NET MVC

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.