Using Telerik MVC Extensions to select all checkboxes in a grid
-
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