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 7502345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T20:50:03+00:00 2026-05-29T20:50:03+00:00

I am working with some custom ajax functionality using Telerik’s MVC Grid and I

  • 0

I am working with some custom ajax functionality using Telerik’s MVC Grid and I am trying to hide/remove child elements of a cell based on specific criteria, I found a similar question here: Telerik MVC Grid making a Column Red Color based on Other Column Value but couldn’t get it working right.

Basically when the row is databound in the grid this event fires:

 function onRowDataBound(e) {
        if (e.dataItem.Status == "Submitted") {
            $.each(e.row.cells, function (index, column) {
                alert(column.innerHTML);
                //var $header = $(column).closest('table').find('th').eq($(column).index());
                //if(header text == "Actions)
                //{
                     //Get the <a> child elements in the 'Actions' column whose class contains t-grid-Edit, 
                     //t-grid-edit, t-grid-Delete, or t-grid-delete and set their display to none, add a css class, and remove the element entirely
                //}
            }

        }
    }

So far it’s working in that I can get and iterate through each column in the row, but I am not sure what to do at this point, I found this How can I get the corresponding table header (th) from a table cell (td)? to check to make sure the column name name is Actions, but I couldn’t get it working. I am not sure how to convert the javascript HTMLTableCellElement object into a jQuery object so I can use syntax I am more familiar with.

Here is what I need to do after that:

  1. Get the child elements in the ‘Actions’ (has to go by column header name instead of cell index because the number of columns can change) column whose class
    contains t-grid-Edit, t-grid-edit, t-grid-Delete, or t-grid-delete
  2. Take those elements and (each of these actions would be used on different pages using similar setups):

    • a. Set the element’s display style to none

    • b. Add a class to the element of name “Hidden”

    • c. Remove the element from the code entirely

How can I put the above functionality into my onRowDataBound function?

Thank you SO =).

  • 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-29T20:50:04+00:00Added an answer on May 29, 2026 at 8:50 pm

    I was able to figure this out with a lot of playing:

    function onRowDataBound(e) {
            if(e.dataItem.Status == "Submitted"){
                var $row = $(e.row);
                $.each($row.children("td"), function (index, column) {
                    var $column = $(column);
                    var $headerText = $column.closest('table').find('th').eq($column.index()).children(".t-link").text();
                    if ($headerText == "Actions") {
                        $.each($column.children("a.t-grid-delete, a.t-grid-Edit"), function (subIndex, link) {
                            $(link).remove();
    
                        });
                    }
    
                }); 
            }
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on WordPress theme which has some custom functionality which includes the ability
I'm working on a Django project, and I've created some custom admin views using
I'm trying to get some custom views for a content query rollup working in
I am currently working on some simple custom allocators in c++ which generally works
I am working on a Windows utility program which communicates with some custom hardware
In some instances, I prefer working with custom objects instead of strongly typed datasets
I'm working on some production software, using C# on the .NET framework. I really
I am working on some custom post types. I finished the first one and
I've been working in the creation of some custom components adding functionalites to the
I'm currently working on a plug-in for Eclipse that translates some custom Java code

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.