开发者

Telerik MVC Grid: setting state of form checkbox to state of row checkbox for MVC application using JQuery

开发者 https://www.devze.com 2023-01-25 08:53 出处:网络
A bit of a tough one i think. I have a telerik 开发者_如何学Pythonmvc grid that has a cell that is a checkbox. Its disabled, and i have a piece of jquery code that when a row is selected, fills some h

A bit of a tough one i think. I have a telerik 开发者_如何学Pythonmvc grid that has a cell that is a checkbox. Its disabled, and i have a piece of jquery code that when a row is selected, fills some html boxes on the form based on what is in there. I have a checkbox that i need assigned, and i know its not as simple as $('#checkbox').val(row.cells[13].innerHTML). I have to check the state using something to the effect of whats on this page :

http://jvance.com/blog/2009/07/14/GetValueOfCheckboxUsingJQueryToEnableButton.xhtml

but im not sure how to check the value with the telerik grid. Has anyone done this before or have any insight?


OK, well i managed to find the answer. For future reference its this:

var checked = $(row.cells[13]).find(':checkbox').attr('checked');
0

精彩评论

暂无评论...
验证码 换一张
取 消