This question is locked. New answers and comments are not allowed.
I've recently upgraded to the Q3 2011 release, and I've noticed that this client event is no longer registering. This was working prior to upgrading. Here is my grid markup:
@(Html.Telerik()
.Grid(Model.GridData)
.Name("ProductData")
.Columns(column =>
column.Template(@<text><input type="checkbox" name="checkedRecords" class="value-checkbox" value="@item.ProductId" /></text>)
.Width(50)
.HtmlAttributes(new { @style = "text-align: center;" })
.HtmlAttributes(new { @id = "column_ProductId" })
.HeaderTemplate("<input type='checkbox' id='checkbox-select-all' style='text-align: center; margin-left: 11px;' />");
column.Bound("Description").Title("Description").Width(150);
column.Bound("FullDescription").Title("Full Description").Width(150);
column.Bound("IsInactive").Title("Is Inactive").Width(150);
column.Bound("CategoryName").Title("Category").Width(150);
})
.Sortable()
.Scrollable(scroll => scroll.Height(500))
.ClientEvents(events => events.OnLoad("grid_OnLoad"))
.NoRecordsTemplate("Please enter a search term to begin.")
)
Here is the Javascript:
function grid_OnLoad() {
alert('grid loaded');
// other JS code to respond to a row click to check the checkbox, and a double-click to open a new window with selected details
}
As it stands right now, when the page loads and the grid renders, I get no alert(). I added that to verify that the event was registering because I lost the ability to click on a row to select the checkbox, as well as the ability to double-click on the row to open a new window. The only thing that has changed between now and then is the upgrade to Q3 2011.
I can provide an example project if you'd like, but I'm not sure when I'll get time as I have a lot on my plate. I noticed this during some regular testing. Thanks.
James
EDIT: Also want to add that my header checkbox is also no longer centering when it was before, but that's a very small issue I can worry about myself. Just wanted to add it in case it was an "unintended feature" of the new release. :)
@(Html.Telerik()
.Grid(Model.GridData)
.Name("ProductData")
.Columns(column =>
column.Template(@<text><input type="checkbox" name="checkedRecords" class="value-checkbox" value="@item.ProductId" /></text>)
.Width(50)
.HtmlAttributes(new { @style = "text-align: center;" })
.HtmlAttributes(new { @id = "column_ProductId" })
.HeaderTemplate("<input type='checkbox' id='checkbox-select-all' style='text-align: center; margin-left: 11px;' />");
column.Bound("Description").Title("Description").Width(150);
column.Bound("FullDescription").Title("Full Description").Width(150);
column.Bound("IsInactive").Title("Is Inactive").Width(150);
column.Bound("CategoryName").Title("Category").Width(150);
})
.Sortable()
.Scrollable(scroll => scroll.Height(500))
.ClientEvents(events => events.OnLoad("grid_OnLoad"))
.NoRecordsTemplate("Please enter a search term to begin.")
)
Here is the Javascript:
function grid_OnLoad() {
alert('grid loaded');
// other JS code to respond to a row click to check the checkbox, and a double-click to open a new window with selected details
}
As it stands right now, when the page loads and the grid renders, I get no alert(). I added that to verify that the event was registering because I lost the ability to click on a row to select the checkbox, as well as the ability to double-click on the row to open a new window. The only thing that has changed between now and then is the upgrade to Q3 2011.
I can provide an example project if you'd like, but I'm not sure when I'll get time as I have a lot on my plate. I noticed this during some regular testing. Thanks.
James
EDIT: Also want to add that my header checkbox is also no longer centering when it was before, but that's a very small issue I can worry about myself. Just wanted to add it in case it was an "unintended feature" of the new release. :)