<asp:Panel ID="PnlFileDetails" runat="server" BorderStyle="Solid" BorderWidth="1px"
Width="100%">
<asp:Panel ID="PnlCurrentConntentDetails" runat="server" Width="100%">
<table style="width: 100%">
<tr>
<td style="border: 1px solid">
<telerik:RadGrid ID="dgCurrentContentDetails" runat="server" AllowMultiRowSelection="True"
Skin="SLB" CellSpacing="1" CellPadding="3" BorderStyle="Solid" BorderWidth="0px"
Width="100%" Height="300px" AutoGenerateColumns="False" GridLines="None" AllowSorting="True"
HeaderStyle-Height="30px" EnableEmbeddedSkins="False" OnItemDataBound="dgCurrentContentDetails_ItemDataBound">
<ClientSettings>
<Scrolling AllowScroll="true" UseStaticHeaders="true" />
<Selecting AllowRowSelect="true" />
<ClientEvents OnRowSelecting="RowSelecting" OnRowSelected="RowSelected" OnRowDeselected="RowDeSelected" />
</ClientSettings>
<HeaderStyle Font-Underline="False" Height="30px" />
<ItemStyle Wrap="true" />
<MasterTableView AllowNaturalSort="true" AllowCustomSorting="true" ShowHeadersWhenNoRecords="true"
NoMasterRecordsText="No files found for the selected product.">
<ExpandCollapseColumn SortAscImageUrl="~/Skins/SLB/Grid\SortAsc.gif" SortDescImageUrl="~/Skins/SLB/Grid\SortDesc.gif">
</ExpandCollapseColumn>
<Columns>
<telerik:GridBoundColumn UniqueName="RuleID" DataField="RuleID" HeaderText="RuleID"
Display="false">
<HeaderStyle HorizontalAlign="Center" />
<ItemStyle Wrap="true" HorizontalAlign="Left" CssClass="RadGridRow" />
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
</td>
</tr>
</table>
</asp:Panel>
</asp:Panel>
Hi ,
Above is the code for Rad Grid. I have disabled the PnlFileDetails on the server side. On click of a button , I want to enable the rad grid on the client side. I have written the below code to enable the grid.
document.getElementById('ctl00_CntPlHolder_PnlFileDetails').disabled = false;
document.getElementById('ctl00_CntPlHolder_PnlCurrentConntentDetails').disabled = false;
document.getElementById(
'ctl00_CntPlHolder_dgCurrentContentDetails').enabled = true;
But the grid is not enabled. Please let me how to enable the grid on the client side(using java script).
Thanks,
Sudha.