Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Using Telerik MVC Extensions to select all checkboxes in a grid

Using Telerik MVC Extensions to select all checkboxes in a grid

Scheduled Pinned Locked Moved ASP.NET
asp-nethtmlcsscomarchitecture
1 Posts 1 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jboyd111
    wrote on last edited by
    #1

    Hello, I'm trying to use the Telerik grid control. I've followed the demo listed here. I've implemented the code in a very similar fashion with a few changes due to some "quirks". The ID of my checkbox header column is "checkAllMovies" I've spent most of the day getting it working. I'm now stuck on the part where I want it to select all check boxes. There's a bit of code at the bottom of my "view" file within my form:

    @Html.Telerik().ScriptRegistrar().OnDocumentReady(
    @<text>
    /* attach event handler to "check all" checkbox */
    $('#checkAllMovies').click(function checkAll()
    {
    $("#Grid tbody input:checkbox").attr("checked", this.checked);
    });
    </text>);

    This doesn't seem to work/do anything. I'm new to the Telerik MVC controls (Open source). Thanks in advance for any assistance. - jboyd

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups