or


GridcheckBox with ReadOnly=false is not working (unable to check/uncheck)
I have a few GridCheckBoxColumn inside a RadGrid. I have the ReadOnly property set to false but i cannot edit any of the checkboxes, that is I can neither check or uncheck them.
Anyone with any ideas as to why this is happening? Any comments/suggestions/ideas/correctiosn much appreciated as I'n new to the whole telerik markup.
Cheers,
Alan
</telerik:RadToolBar> <telerik:RadGrid ID="RadGrid3" runat="server" OnNeedDataSource="TelerikGridOnNeedDatasource" DataSourceID="dsActionProperties" PageSize="500" > <MasterTableView DataSourceID="dsActionProperties" AllowCustomSorting="True"> <Columns> <telerik:GridBoundColumn DataField="Name" HeaderText="Action Name" UniqueName="Name" SortExpression="Action Name"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="ActionSourceID" HeaderText="Action Source" UniqueName="ActionSourceID" > </telerik:GridBoundColumn> <telerik:GridCheckBoxColumn DataField="IsStateChecked" DataType="System.Boolean" HeaderText="State Dependent" UniqueName="IsStateDependent" ReadOnly="false"> <HeaderStyle HorizontalAlign="Center" /> <ItemStyle HorizontalAlign="Center" /> </telerik:GridCheckBoxColumn> <telerik:GridCheckBoxColumn DataField="IsTypeDependent" DataType="System.Boolean" HeaderText="Type Dependent" UniqueName="TypeDependent"> <HeaderStyle HorizontalAlign="Center" /> <ItemStyle HorizontalAlign="Center" /> </telerik:GridCheckBoxColumn> <telerik:GridCheckBoxColumn DataField="Enabled" DataType="System.Boolean" HeaderText="Enabled" UniqueName="Enabled" ReadOnly="false"> <HeaderStyle HorizontalAlign="Center" /> <ItemStyle HorizontalAlign="Center" /> </telerik:GridCheckBoxColumn> </Columns> </MasterTableView> </telerik:RadGrid><br /> <asp:ObjectDataSource ID="dsActionProperties" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetAllActions" TypeName="DataSources.ActionsDS"> </asp:ObjectDataSource> <script type="text/javascript" language="JavaScript"> function UpdateChildrenRecursively(nodes, checked) { var i; for (i=0; i<nodes.get_count(); i++) { if (checked) { nodes.getNode(i).check(); } else { nodes.getNode(i).set_checked(false); } // if the node has children, call the recursive function // then disable the checkboxes for each child if (nodes.getNode(i).get_nodes().get_count()> 0) { UpdateChildrenRecursively(nodes.getNode(i).get_nodes(), checked); nodes.getNode(i).get_nodes().disabled = true; } } } function clientNodeChecked(sender, eventArgs) { var childNodes = eventArgs.get_node().get_nodes(); var isChecked = eventArgs.get_node().get_checked(); UpdateChildrenRecursively(childNodes, isChecked); }</script>