1
我在Telerik RadGrid內部有一個GridCheckBoxColumn。我想循環遍歷客戶端的所有行,並設置複選框的值。我無法弄清楚如何獲得複選框控件。所以我有:從客戶端設置Telerik RadGrid中的GridCheckBoxColumn
var grid = $find("<%=RadGrid1.ClientID %>");
var masterTableView = grid.get_masterTableView();
if (masterTableView != null) {
var gridItems = masterTableView.get_dataItems();
var i;
for (i = 0; i < gridItems.length; ++i) {
var gridItem = gridItems[i];
// how to get the checkbox here? Note - since its a CheckBox column, I don't know the id of the checkbox
// this doesn't work:
var control = gridItem.Controls[0];
control.checked = false;
}
}