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!
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…
the script…
to remove the Edit button…
to hide the last column use
With all that being said, this allows you to predetermine what buttons you want displayed on a row by row basis.