
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; |
| } |
| } |
