or
Here's the Form Decorator in the Master Page:
<telerik:RadFormDecorator ID="FormDecorator1" runat="server" Skin="Metro" DecoratedControls="Default" ControlsToSkip="Buttons" />
<telerik:GridTemplateColumn UniqueName="TemplateSelect"> <ItemTemplate> <asp:CheckBox ID="chkSelected" runat="server" OnCheckedChanged="RowCheckedChanged" /> </ItemTemplate> <HeaderTemplate> <asp:CheckBox ID="CheckBoxHeader" runat="server" OnCheckedChanged="CheckBoxHeader_CheckedChanged" /> </HeaderTemplate></telerik:GridTemplateColumn>
When I enable the FormDecorator, if I try to click on the Checkboxes (chkSelected) the Checkboxes are not selectable
but if I disable the form decorator everything works fine, I noticed that this only happens in the Checkbox
that is inside the <ItemTemplate> but not with the one that's inside the <HeaderTemplate>
Is there a fix or workaround to this issue?
Thank you.
public void Page_PreRenderComplete(object sender, EventArgs e) { if(btnToggleHierarchy.Checked) HideExpandColumnRecursive(RadGrid1.MasterTableView); } /// <summary> /// Create buttons on items that have children /// </summary> /// <param name="tableView"></param> public void HideExpandColumnRecursive(GridTableView tableView) { GridItem[] nestedViewItems = tableView.GetItems(GridItemType.NestedView); foreach (GridNestedViewItem nestedViewItem in nestedViewItems) { foreach (GridTableView nestedView in nestedViewItem.NestedTableViews) { nestedView.Style["border"] = "0"; Button MyExpandCollapseButton = (Button)nestedView.ParentItem.FindControl("MyExpandCollapseButton"); if (nestedView.Items.Count == 0) { if (MyExpandCollapseButton != null) { MyExpandCollapseButton.Style["visibility"] = "hidden"; ((TableCell)MyExpandCollapseButton.Parent).BackColor = System.Drawing.Color.White; } nestedViewItem.Visible = false; } else { if (MyExpandCollapseButton != null) { //Only set the background if we are the Highest Parent... otherwise leave it to the //alternating styles if (nestedView.ParentItem.OwnerTableView == RadGrid1.MasterTableView) ((TableCell)MyExpandCollapseButton.Parent).CssClass = "ExpandCollapseBackground" ; MyExpandCollapseButton.Style.Remove("visibility"); } } if (nestedView.HasDetailTables) { HideExpandColumnRecursive(nestedView); } } } }

Session["GridData"] = datatablevalue ; RadGrid1.DataSource = Session["GridData"];