or
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">I'm calling these functions this way:
function foo(sender)
{
....
}
</telerik:RadScriptBlock>
How can I use inline asp-tags in HTML-Controls ?<img name="foo" onclick="return foo('<%=me.ClientID %>');" />This throws the infamous "Control Collection"-Error.
I dont't want to change all the function calls - this would require more than a week !
<
telerik:GridTemplateColumn ShowSortIcon="False" UniqueName="Selector">
<ItemTemplate>
<asp:CheckBox ID="INPUT" runat="server" />
</ItemTemplate>
<HeaderTemplate>
<input id="SelectAllCheckBox" type="checkbox" onclick="CheckBoxChanged()" />
</HeaderTemplate>
</telerik:GridTemplateColumn>
function
CheckAll()
{
var checkboxes = grid.MasterTableView.Control.getElementsByTagName("INPUT");
for (var index = 0; index < checkboxes.length; index++)
{
if( ! checkboxes[index].checked )
{
checkboxes[index].checked = true;
}
}
}