You Can Disable Node Click On Parent Node On Server Side By Setting the Value of PostBack to false then handle the level for node on node click event
Example :
| RadTreeNode Node = new RadTreeNode(Node Name Here, Node Value Here) |
| Node.PostBack = false; |
| tree.Nodes.Add(Node ); |
| //And on NodeClick Event We Do The Following : |
| protected void tree_NodeClick(object sender, RadTreeNodeEventArgs e) |
| { |
| if (e.Node.Level != 0) |
| { |
| //Your Event For Click Here |
| } |
| } |

<
telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"
Width="75px">
<img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'
style="border: 0px;" />
</telerik:RadAjaxLoadingPanel>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="ButtonViewColumnHeader">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="divSpread" LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
After loading the control, I get the clientID of the updated control written on my aspx page (just above the control) as shown below.
Has anyone come across such a strange issue? Is there any way to get rid of this display? many thanks, Anu |
|||

| protected void gwTeam_ItemDataBound(object sender, GridItemEventArgs e) |
| { |
| if (!(e.Item is GridEditFormItem) || !e.Item.IsInEditMode) return; |
| var child = e.Item as GridEditFormItem; |
| GridDataItem parent = child.ParentItem; |
| GridColumn col; |
| var season = child.FindControl("cbSeason") as RadComboBox; |
| var teamName = child.FindControl("tbName") as RadTextBox; |
| var playfield = child.FindControl("cbPlayfield") as RadComboBox; |
| var teamleader = child.FindControl("cbTeamLeader") as RadComboBox; |
| var category = child.FindControl("cbCategory") as RadComboBox; |
| if(season == null || teamName == null || playfield == null || teamleader == null || category == null) |
| { |
| Response.Write("Unable to find control"); |
| } |
| else |
| { |
| season.DataSource = dsAsk.Season; |
| season.DataValueField = "SeasonID"; |
| season.DataTextField = "SeasonYear"; |
| season.DataBind(); |
| col = gwTeam.MasterTableView.GetColumnSafe("Säsong"); |
| season.SelectedValue = col.ToString();// parent["Säsong"].Text; |
| teamName.Text = parent["TeamName"].Text; |
| playfield.DataSource = dsAsk.Playfield; |
| playfield.DataValueField = "PlayfieldID"; |
| playfield.DataTextField = "PlayfieldName"; |
| playfield.DataBind(); |
| col = gwTeam.MasterTableView.GetColumnSafe("Spelplan"); |
| playfield.SelectedValue = col.ToString();// parent["Spelplan"].Text; |
| teamleader.DataSource = dsAsk.TeamLeader; |
| teamleader.DataValueField = "TeamLeaderID"; |
| teamleader.DataTextField = "TeamLeaderName"; |
| teamleader.DataBind(); |
| col = gwTeam.MasterTableView.GetColumnSafe("Lagledare"); |
| teamleader.SelectedValue = col.ToString();// parent["Lagledare"].Text; |
| //teamleader.Text = parent["TeamLeaderID"].Text; |
| category.DataSource = dsAsk.TeamCategory; |
| category.DataValueField = "TeamCategoryID"; |
| category.DataTextField = "TeamCategory"; |
| category.DataBind(); |
| col = gwTeam.MasterTableView.GetColumnSafe("Serie"); |
| category.SelectedValue = col.ToString();// parent.DataSetIndex; |
| //category.Text = parent["TeamCategoryID"].Text; |
| } |
| } |

Hi,
I have radGrid with the following markup:
<
telerik:RadGrid ID="RadGridMapFilter" runat="server" AllowPaging="True" ClientSettings-EnablePostBackOnRowClick="true"
PagerStyle-Mode="Slider"
GridLines="None" Width="377px" AutoGenerateColumns="False" Height="320px" >
<MasterTableView>
<columns>
<telerik:GridBoundColumn DataField="FilterAbb" HeaderText="Filters"
SortExpression="Filters" Visible="false" />
<telerik:GridBoundColumn DataField="FilterName" HeaderText="Filters"
SortExpression="Filters" Visible="true" />
</columns>
<RowIndicatorColumn Visible="False">
<HeaderStyle Width="20px" />
</RowIndicatorColumn>
<ExpandCollapseColumn Resizable="False" Visible="False">
<HeaderStyle Width="20px" />
</ExpandCollapseColumn>
<EditFormSettings>
<PopUpSettings ScrollBars="None" />
</EditFormSettings>
</MasterTableView>
<ClientSettings>
<Selecting AllowRowSelect="True" />
</ClientSettings>
</telerik:RadGrid>
The issue is that When I select a row in this grid, randomly it will spit out Dynamic javascript errors. After debugging the Dynamic javascript error it breaks on the first line(var _33 =_31.parentNode;)
var _33=_31.parentNode;
var _34=_31.nextSibling||Telerik.Web.UI.RadAjaxControl.GetNodeNextSibling(_31);
Telerik.Web.UI.RadAjaxControl.InsertAtLocation(_32,_33,_34);
_31.parentNode.removeChild(_31);
}
The error just says "Microsoft JScript runtime error: Object required"
Any idea why this happens randomly.The version of the telerik.web.UI dll we are using is v2008.2.1001.35.
Please let me know if you need more information from me.
Thank you,
Anshul.