Hi,
I have a RadGrid inside the EditForm of the main RadGrid:
<
telerik:RadGrid
runat
=
"server"
ID
=
"RadGrid1"
>
<
EditFormSettings
EditFormType
=
"Template"
>
<
FormTemplate
>
<
div
>
<
asp:Panel
runat
=
"server"
ID
=
"Panel1"
>
<
table
><
tr
><
td
>
<
telerik:RadGrid
runat
=
"server"
ID
=
"InnerRadGrid"
></
telerik:RadGrid
>
</
td
></
tr
></
table
>
</
asp:Panel
>
</
div
>
</
FormTemplate
>
</
EditFormSettings
>
</
telerik:RadGrid
>
How can I reach via javascript the InnerRadGrid?
I tried using
RadGrid1.Controls.Add(
new
LiteralControl(
"<script type='text/javascript'>window['InnerRadGrid'] = '"
+ InnerRadGrid.ClientID +
"';</script>"
));
var
grid = document.getElementById(window[
'InnerRadGrid'
]);
in RadGrid1_ItemCreated() but id doesn't work.
I need it because in the header of some TemplateColumn in the InnerRadGrid I have a checkbox which, when toggled, shoul select/deselect every checkbox in that column. If there is another way to reach this functionality, it'd be fine.
Thank you, regards
Nick