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

  • SEARCH
  • Home
  • 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 8962669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:10:53+00:00 2026-06-15T16:10:53+00:00

I am using the Telerik Kendo grid with MVC and C#. I have a

  • 0

I am using the Telerik Kendo grid with MVC and C#.
I have a grid, populated with some data and have added a checkbox column – used so that the user can select all.

Now, when I check the “selectAll” checkbox, all checkboxes are checked (one for each row), as they should be.

What I want to do: I want to be able to double-click on a row and have the chechbox check change – if it is unchecked, a dbl-click will check it and visa versa.

Also, as the Kendo grid allows the user to select many (mousedown, drag and mouseup – like when selecting icons on the desktop), I’d like to have it so that when the user does this action, all the selected rows have their checkboxes checked and again, if they are already checked, then this action will cause the checkboxes to become unchecked.

Details:

  • Grid name: Grid
  • JQuery version: 1.8.3
  • MVC 4
  • Latest KendoUI

Code for checking all checkboxes when the “selectAll” checkbox is checked:

$(document).ready(function () {
var grid = $('#Grid').data('kendoGrid');
    grid.thead.find("th:last")
    .append($('<input class="selectAll" type="checkbox"/>'))
    .delegate(".selectAll", "click", function () {
        var checkbox = $(this);
        grid.table.find("tr")
            .find("td:last input")
            .attr("checked", checkbox.is(":checked"))
            .trigger("change");
    });
});

I am a total beginner with Javascript so any help would be much appreciated.

  • 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-06-15T16:10:54+00:00Added an answer on June 15, 2026 at 4:10 pm

    Your example seems to work : http://jsfiddle.net/scaillerie/axpmF/ .

    You just have to set your grid as a kendoGrid by adding at the beginning of your document.ready event :

    $('#Grid').kendoGrid();
    

    and to be sure that there is a checkbox in all last cells of your table…


    EDIT :

    For updating the state of the checkboxes in the selected rows, you have to register the event dblclick on each cell of the grid:

    grid.tbody.on("dblclick", "tr", selectAllSelectedRows);
    
    function selectAllSelectedRows() {
        grid.tbody.find("tr").each(function() {
            var $this = $(this),
                ckbox,
                state;
    
            if($this.hasClass("k-state-selected")) {
                ckbox = $this.find("td:last input");
                state = ckbox.prop("checked");
                ckbox.prop("checked", !state);   
            }
        })
    }
    

    I have updated my fiddle with the new code : http://jsfiddle.net/scaillerie/axpmF/2/ .

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

Sidebar

Related Questions

I am using Telerik asp.net mvc extensions. I have an issue that happens only
I am using the Telerk Kendo UI grid that loads data remotely. The QueryString
I am using Telerik MVC grid ajax binding to show some records. While the
I am using Telerik's RadGridView to display some data. When data in one column
Using telerik mvc grid with ajax, give me some headaches. I am trying to
I have a grid that is currently using Telerik Grids, I would like to
I have been using Telerik Charts with Asp.net mvc and I have run into
I am using Telerik MVC Grid, with ajax binding and I use grid editing
I have been using telerik extensions for an asp.net mvc project, more specifically the
Here are the details: We have a dynamic data website using Telerik Open access,

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.