I am using GridTemplateColumns in which there are asp controls like checkboxes and textboxes....
<telerik:GridTemplateColumn UniqueName="LocalUsageColumn" HeaderText="Local Usage" EditFormColumnIndex="1">
<ItemTemplate>
<asp:CheckBox id="DisabledLocalCheckBox" runat="server" Enabled="False" Checked='<%# Eval("LocalUsage") %>'></asp:CheckBox>
</ItemTemplate>
<EditItemTemplate>
<asp:CheckBox id="EditableLocalCheckBox" runat="server" Checked='<%# Bind("LocalUsage") %>' Onclick="usageCheck('EditableLocalCheckBox');">
</asp:CheckBox>
</EditItemTemplate>
</telerik:GridTemplateColumn>
I have a javascript function that gets fired when the checkboxe state changes, I would like to know how to get the ClientID of the controls I have in the EditItemTemplate
function usageCheck(sender){ }
I have tried
$find(
"<%= LocalUsageColumn.ClientID %>");
But can't be found.
My grid is in a page that inherits from a master page, So the ID for the controls looks something like .......
ctl00_MasterPageContentPlaceHolder_RadGrid1_ctl00_ctl05_EditableLocalCheckBox
But each editable Item in eachrow has diffrent ID (ctl00_ctl05, ctl00_ctl06, etc) so I can't hardcode it.
Do you have a solution?
I apreciate your reply in advance.